From: Vance K. <va...@us...> - 2006-12-07 01:09:56
|
User: vancek Date: 06/12/06 17:09:54 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: JIRA-48 fix incorrect spelling for generator sequence and table types Revision Changes Path 1.42 +5 -5 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl Index: EntityEmbeddable.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl,v retrieving revision 1.41 retrieving revision 1.42 diff -u -w -r1.41 -r1.42 --- EntityEmbeddable.vsl 9 Oct 2006 04:08:51 -0000 1.41 +++ EntityEmbeddable.vsl 7 Dec 2006 01:09:53 -0000 1.42 @@ -401,13 +401,13 @@ #* *##elseif (!$attribute.version) #* *##if ($attribute.identifier) @javax.persistence.Id -#* *##if ($attribute.sequenceGeneratorType) - @javax.persistence.SequenceGenerator(name = "${attribute.generatorName}"#if ($attribute.sequenceGeneratorType), sequenceName = "${attribute.generatorSourceName}"#end#if ($attribute.sequenceGeneratorType), initialValue = ${attribute.generatorInitialValue}#end#if ($attribute.generatorAllocationSize), allocationSize = ${attribute.generatorAllocationSize}#end) -#* *##elseif ($attribute.tableGeneratorType) - @javax.persistence.TableGenerator(name = "${attribute.generatorName}"#if ($attribute.tableGeneratorType), table = "${attribute.generatorSourceName}"#end#if ($attribute.generatorPkColumnValue), pkColumnValue = "${attribute.generatorPkColumnValue}"#end#if ($attribute.generatorInitialValue), initialValue = ${attribute.generatorInitialValue}#end#if ($attribute.generatorAllocationSize), allocationSize = ${attribute.generatorAllocationSize}#end) +#* *##if ($attribute.generatorTypeSequence) + @javax.persistence.SequenceGenerator(name = "${attribute.generatorName}"#if ($attribute.generatorTypeSequence), sequenceName = "${attribute.generatorSourceName}"#end#if ($attribute.generatorTypeSequence), initialValue = ${attribute.generatorInitialValue}#end#if ($attribute.generatorAllocationSize), allocationSize = ${attribute.generatorAllocationSize}#end) +#* *##elseif ($attribute.generatorTypeTable) + @javax.persistence.TableGenerator(name = "${attribute.generatorName}"#if ($attribute.generatorTypeTable), table = "${attribute.generatorSourceName}"#end#if ($attribute.generatorPkColumnValue), pkColumnValue = "${attribute.generatorPkColumnValue}"#end#if ($attribute.generatorInitialValue), initialValue = ${attribute.generatorInitialValue}#end#if ($attribute.generatorAllocationSize), allocationSize = ${attribute.generatorAllocationSize}#end) #* *##end #* *##if (!$attribute.generatorTypeNone) - @javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.${attribute.generatorType}#if ($attribute.sequenceGeneratorType || $attribute.tableGeneratorType), generator = "${attribute.generatorName}"#end) + @javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.${attribute.generatorType}#if ($attribute.generatorTypeSequence || $attribute.generatorTypeTable), generator = "${attribute.generatorName}"#end) #* *##end #* *##end #* *##if ($attribute.lob) |