Author: dan.j.allen
Date: 2009-03-19 00:19:03 -0400 (Thu, 19 Mar 2009)
New Revision: 10185
Modified:
trunk/seam-gen/src/EntityHome.java.ftl
Log:
add convenience method to load, which is to wire only if an id is set
Modified: trunk/seam-gen/src/EntityHome.java.ftl
===================================================================
--- trunk/seam-gen/src/EntityHome.java.ftl 2009-03-19 04:18:19 UTC (rev 10184)
+++ trunk/seam-gen/src/EntityHome.java.ftl 2009-03-19 04:19:03 UTC (rev 10185)
@@ -66,6 +66,14 @@
return ${componentName};
}
+ public void load()
+ {
+ if (isIdDefined())
+ {
+ wire();
+ }
+ }
+
public void wire()
{
getInstance();
Show replies by date