[seam-commits] Seam SVN: r10245 - branches/community/Seam_2_0/seam-gen/src.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Mar 30 22:08:24 EDT 2009


Author: dan.j.allen
Date: 2009-03-30 22:08:23 -0400 (Mon, 30 Mar 2009)
New Revision: 10245

Modified:
   branches/community/Seam_2_0/seam-gen/src/EntityHome.java.ftl
Log:
JBSEAM-994 quick fix


Modified: branches/community/Seam_2_0/seam-gen/src/EntityHome.java.ftl
===================================================================
--- branches/community/Seam_2_0/seam-gen/src/EntityHome.java.ftl	2009-03-31 02:07:05 UTC (rev 10244)
+++ branches/community/Seam_2_0/seam-gen/src/EntityHome.java.ftl	2009-03-31 02:08:23 UTC (rev 10245)
@@ -7,13 +7,17 @@
 public class ${entityName}Home extends ${pojo.importType("org.jboss.seam.framework.EntityHome")}<${entityName}>
 {
 
+<#assign parentHomeNames = []>
 <#foreach property in pojo.allPropertiesIterator>
 <#if util.isToOne(property)>
 <#assign parentPojo = c2j.getPOJOClass(cfg.getClassMapping(property.value.referencedEntityName))>
 <#assign parentHomeName = util.lower(parentPojo.shortName) + "Home">
+<#if !parentHomeNames?seq_contains(parentHomeName)><#-- This doesn't fix the functionality, just allows compilation to work -->
+<#assign parentHomeNames = parentHomeNames + [parentHomeName]>
     @${pojo.importType("org.jboss.seam.annotations.In")}(create=true)
     <#if parentPojo.packageName!="">${pojo.importType("${parentPojo.packageName}.${parentPojo.shortName}")}<#else>${parentPojo.shortName}</#if>Home ${parentHomeName};
 </#if>
+</#if>
 </#foreach>
 
 <#assign idName = entityName + util.upper(pojo.identifierProperty.name)>




More information about the seam-commits mailing list