[jboss-cvs] jboss-seam/seam-gen/pojo ...
Max Rydahl Andersen
mandersen at jboss.com
Fri Oct 26 09:44:39 EDT 2007
User: mandersen
Date: 07/10/26 09:44:39
Modified: seam-gen/pojo Tag: Seam_1_2_1_AP GetPropertyAnnotation.ftl
Log:
@NotNull should not be put on id's
Revision Changes Path
No revision
No revision
1.2.4.1 +9 -9 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.2.4.1
diff -u -b -r1.2 -r1.2.4.1
--- GetPropertyAnnotation.ftl 30 Nov 2006 11:26:23 -0000 1.2
+++ GetPropertyAnnotation.ftl 26 Oct 2007 13:44:39 -0000 1.2.4.1
@@ -1,5 +1,5 @@
<#include "Ejb3PropertyGetAnnotation.ftl"/>
-<#if !property.optional>
+<#if !property.optional && !property.equals(pojo.identifierProperty)>
@${pojo.importType("org.hibernate.validator.NotNull")}
</#if>
<#if property.columnSpan==1>
More information about the jboss-cvs-commits
mailing list