[seam-commits] Seam SVN: r10244 - trunk/seam-gen/src.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Mar 30 22:07:05 EDT 2009
Author: dan.j.allen
Date: 2009-03-30 22:07:05 -0400 (Mon, 30 Mar 2009)
New Revision: 10244
Modified:
trunk/seam-gen/src/EntityHome.java.ftl
Log:
JBSEAM-994 quick fix
Modified: trunk/seam-gen/src/EntityHome.java.ftl
===================================================================
--- trunk/seam-gen/src/EntityHome.java.ftl 2009-03-31 01:29:17 UTC (rev 10243)
+++ trunk/seam-gen/src/EntityHome.java.ftl 2009-03-31 02:07:05 UTC (rev 10244)
@@ -8,13 +8,17 @@
public class ${entityName}Home extends ${pojo.importType("org.jboss.seam.framework.EntityHome")}<${entityName}>
{
+<#assign parentHomeNames = []>
<#foreach property in pojo.allPropertiesIterator>
<#if isToOne(property)>
<#assign parentPojo = c2j.getPOJOClass(cfg.getClassMapping(property.value.referencedEntityName))>
<#assign parentHomeName = parentPojo.shortName?uncap_first + "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 + pojo.identifierProperty.name?cap_first>
More information about the seam-commits
mailing list