From: Vance K. <va...@us...> - 2006-02-09 07:05:16
|
User: vancek Date: 06/02/08 23:05:10 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: added insertable and updatable properties to @Column for attributes fixed @Enumerated value to include fully qualified value - javax.persistence.EnumType Revision Changes Path 1.15 +2 -2 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.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- EntityEmbeddable.vsl 6 Feb 2006 03:04:06 -0000 1.14 +++ EntityEmbeddable.vsl 9 Feb 2006 07:05:10 -0000 1.15 @@ -310,7 +310,7 @@ @javax.persistence.Basic(fetch = javax.persistence.FetchType.EAGER) #* *##end #* *##end - @javax.persistence.Column(name = "${attribute.columnName}"#if ($attribute.unique), unique = ${attribute.unique}#end#if (!$attribute.columnNullable), nullable = ${attribute.columnNullable}#end#if ($attribute.columnLength), length = ${attribute.columnLength}#end#if ($attribute.columnDefinition), columnDefinition = "${attribute.columnDefinition}"#end#if ($attribute.columnPrecision), precision = ${attribute.columnPrecision}#end#if ($attribute.columnScale), scale = ${attribute.columnScale}#end) + @javax.persistence.Column(name = "${attribute.columnName}"#if ($attribute.unique), unique = ${attribute.unique}#end#if (!$attribute.columnNullable), nullable = ${attribute.columnNullable}#end#**#, insertable = ${attribute.insertEnabled}, updatable = ${attribute.updateEnabled}#if ($attribute.columnLength), length = ${attribute.columnLength}#end#if ($attribute.columnDefinition), columnDefinition = "${attribute.columnDefinition}"#end#if ($attribute.columnPrecision), precision = ${attribute.columnPrecision}#end#if ($attribute.columnScale), scale = ${attribute.columnScale}#end) #* *##if (!$attribute.lob && $attribute.lazy) ## ## Only add the fetch type property for LAZY hints - default is EAGER @@ -321,7 +321,7 @@ @javax.persistence.Temporal(javax.persistence.TemporalType.${attribute.temporalType}) #* *##end #* *##if ($stringUtils.isNotBlank($attribute.enumerationType)) - @javax.persistence.Enumerated(${attribute.enumerationType}) + @javax.persistence.Enumerated(javax.persistence.EnumType.${attribute.enumerationType}) #* *##end public ${attribute.type.fullyQualifiedName} ${attribute.getterName}() { |