Author: dan.j.allen
Date: 2008-10-09 21:26:16 -0400 (Thu, 09 Oct 2008)
New Revision: 15315
Modified:
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java
Log:
HBX-1090
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 2008-10-09
21:22:50 UTC (rev 15314)
+++
branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/Cfg2HbmTool.java 2008-10-10
01:26:16 UTC (rev 15315)
@@ -173,6 +173,10 @@
public boolean isManyToOne(Property property) {
return (property.getValue()!=null) && (property.getValue() instanceof
ManyToOne);
}
+
+ public boolean isToOne(Property property) {
+ return (property.getValue()!=null) && (property.getValue() instanceof
ToOne);
+ }
public boolean isTemporalValue(Property property) {
if(property.getValue() instanceof SimpleValue) {