[jboss-cvs] jboss-seam/seam-gen/pojo ...
Max Rydahl Andersen
mandersen at jboss.com
Thu Nov 30 06:26:23 EST 2006
User: mandersen
Date: 06/11/30 06:26:23
Modified: seam-gen/pojo GetPropertyAnnotation.ftl
Log:
no longer generate @Length for temporal and manytoone
no longer cascade = { } and other noisy empty annotation attributes
Revision Changes Path
1.2 +1 -1 jboss-seam/seam-gen/pojo/GetPropertyAnnotation.ftl
(In the diff below, changes in quantity of whitespace are not shown.)
Index: GetPropertyAnnotation.ftl
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/pojo/GetPropertyAnnotation.ftl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- GetPropertyAnnotation.ftl 9 Nov 2006 15:41:40 -0000 1.1
+++ GetPropertyAnnotation.ftl 30 Nov 2006 11:26:23 -0000 1.2
@@ -4,7 +4,7 @@
</#if>
<#if property.columnSpan==1>
<#assign column = property.getColumnIterator().next()/>
-<#if column.length!=255>
+<#if !c2h.isManyToOne(property) && !c2h.isTemporalValue(property) && column.length!=255>
@${pojo.importType("org.hibernate.validator.Length")}(max=${column.length?c})
</#if>
</#if>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list