Hi,
The following tiny fix solves a problem preventing the use of java primitives for composite ids, since composite ids elements are supposed to be always not null, there is no way to tell they are not-null, but the generator was forgiving it.
--- /home/xpoinsar/workspace/hibernate-tools/src/java/net/sf/hibernate/tool/hbm2java/ClassMapping.java 2004-12-22 16:04:11.000000000 +0100
+++ hibernate-extensions-2.1.3/tools/src/java/net/sf/hibernate/tool/hbm2java/ClassMapping.java 2004-11-22 22:06:37.000000000 +0100
@@ -226,7 +226,7 @@
}
boolean nullable = ( notnull == null || notnull.equals("false") );
boolean key = propertyElement.getName().startsWith("key-"); //a composite id property
- ClassName t = getFieldType(type,nullable && !key,false);
+ ClassName t = getFieldType(type,nullable,false);
addImport(t);
FieldProperty stdField =new FieldProperty(propertyElement, this, propertyName, t, nullable && !key, key, false, metaForProperty);
addFieldProperty(stdField);
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel