Author: dan.j.allen
Date: 2008-09-21 00:22:12 -0400 (Sun, 21 Sep 2008)
New Revision: 9066
Modified:
trunk/src/gen/org/jboss/seam/tool/Util.java
Log:
JBSEAM-2348
Modified: trunk/src/gen/org/jboss/seam/tool/Util.java
===================================================================
--- trunk/src/gen/org/jboss/seam/tool/Util.java 2008-09-21 04:21:38 UTC (rev 9065)
+++ trunk/src/gen/org/jboss/seam/tool/Util.java 2008-09-21 04:22:12 UTC (rev 9066)
@@ -3,6 +3,9 @@
import java.util.HashSet;
import java.util.Set;
+import org.hibernate.mapping.Property;
+import org.hibernate.mapping.ToOne;
+
public class Util
{
public String lower(String name)
@@ -17,4 +20,8 @@
{
return new HashSet();
}
+ public boolean isToOne(Property property)
+ {
+ return (property.getValue() != null) && (property.getValue() instanceof
ToOne);
+ }
}