Author: max.andersen(a)jboss.com
Date: 2006-11-14 08:06:47 -0500 (Tue, 14 Nov 2006)
New Revision: 10803
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java
Log:
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java
===================================================================
---
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java 2006-11-14
13:06:36 UTC (rev 10802)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java 2006-11-14
13:06:47 UTC (rev 10803)
@@ -176,6 +176,10 @@
return isCollection(property) &&
((Collection)property.getValue()).isOneToMany();
}
+ public boolean isSimpleValue(Property property) {
+ return (property.getValue()!=null) && (property.getValue() instanceof
SimpleValue);
+ }
+
public boolean isManyToOne(Property property) {
return (property.getValue()!=null) && (property.getValue() instanceof
ManyToOne);
}
Show replies by date