[jboss-cvs] jboss-seam/seam-gen/pojo ...
Gavin King
gavin.king at jboss.com
Wed Oct 24 17:12:48 EDT 2007
User: gavin
Date: 07/10/24 17:12:48
Modified: seam-gen/pojo GetPropertyAnnotation.ftl
Log:
do not add @NotNull to @GeneratedValue ids
Revision Changes Path
1.3 +2 -2 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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- GetPropertyAnnotation.ftl 30 Nov 2006 11:26:23 -0000 1.2
+++ GetPropertyAnnotation.ftl 24 Oct 2007 21:12:48 -0000 1.3
@@ -1,5 +1,5 @@
<#include "Ejb3PropertyGetAnnotation.ftl"/>
-<#if !property.optional>
+<#if !property.optional && ( !pojo.identifierProperty.equals(property)! || property.value.identifierGeneratorStrategy == "assigned" )>
@${pojo.importType("org.hibernate.validator.NotNull")}
</#if>
<#if property.columnSpan==1>
More information about the jboss-cvs-commits
mailing list