[jboss-cvs] jboss-seam/seam-gen/src ...
Gavin King
gavin.king at jboss.com
Fri Nov 10 00:48:27 EST 2006
User: gavin
Date: 06/11/10 00:48:27
Modified: seam-gen/src EntityHome.java.ftl
Log:
finishing touches
Revision Changes Path
1.4 +3 -2 jboss-seam/seam-gen/src/EntityHome.java.ftl
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EntityHome.java.ftl
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/src/EntityHome.java.ftl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- EntityHome.java.ftl 7 Nov 2006 09:11:57 -0000 1.3
+++ EntityHome.java.ftl 10 Nov 2006 05:48:27 -0000 1.4
@@ -56,9 +56,10 @@
<#foreach property in pojo.allPropertiesIterator>
<#assign getter = "get" + pojo.getPropertyName(property)>
<#if c2h.isOneToManyCollection(property)>
- public List ${getter}() {
+<#assign childPojo = c2j.getPOJOClass(property.value.element.associatedClass)>
+ public List<${childPojo.shortName}> ${getter}() {
return getInstance() == null ?
- null : new ArrayList( getInstance().${getter}() );
+ null : new ArrayList<${childPojo.shortName}>( getInstance().${getter}() );
}
</#if>
</#foreach>
More information about the jboss-cvs-commits
mailing list