Author: dan.j.allen
Date: 2009-03-30 21:29:17 -0400 (Mon, 30 Mar 2009)
New Revision: 10243
Modified:
branches/community/Seam_2_0/seam-gen/src/EntityHome.java.ftl
Log:
JBSEAM-3278
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 01:21:01 UTC
(rev 10242)
+++ branches/community/Seam_2_0/seam-gen/src/EntityHome.java.ftl 2009-03-31 01:29:17 UTC
(rev 10243)
@@ -12,7 +12,7 @@
<#assign parentPojo =
c2j.getPOJOClass(cfg.getClassMapping(property.value.referencedEntityName))>
<#assign parentHomeName = util.lower(parentPojo.shortName) + "Home">
@${pojo.importType("org.jboss.seam.annotations.In")}(create=true)
- ${parentPojo.shortName}Home ${parentHomeName};
+ <#if
parentPojo.packageName!="">${pojo.importType("${parentPojo.packageName}.${parentPojo.shortName}")}<#else>${parentPojo.shortName}</#if>Home
${parentHomeName};
</#if>
</#foreach>
@@ -105,7 +105,7 @@
<#assign getter = pojo.getGetterSignature(property)>
<#if c2h.isOneToManyCollection(property)>
<#assign childPojo = c2j.getPOJOClass(property.value.element.associatedClass)>
- public ${pojo.importType("java.util.List")}<${childPojo.shortName}>
${getter}() {
+ public ${pojo.importType("java.util.List")}<<#if
childPojo.packageName!="">${pojo.importType("${childPojo.packageName}.${childPojo.shortName}")}<#else>${childPojo.shortName}</#if>>
${getter}() {
return getInstance() == null ?
null : new
${pojo.importType("java.util.ArrayList")}<${childPojo.shortName}>(
getInstance().${getter}() );
}