hbm2java duplicates the property(s) referenced in the <properties> element
---------------------------------------------------------------------------
Key: HBX-996
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-996
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2.beta11
Environment: hibernate 3.2.4.sp1, Oracle 10g
Reporter: Keith Lewandowski
I need to specify 2 composite unique constraints that overlap on a column.
I attempted to map this by:
--------------------------------------
<property name="first" .../>
<property name="second" .../>
<propery name="third" .../>
<properties unique="true">
<property name="first"/>
<property name="second"/>
</properties>
<properties unique="true">
<property name="second"/>
<property name="third"/>
</properties>
------------------------------------
I expected this mapping to use the original definition of the property. If it doesn't
there is no way to specify overlapping composite unique constraints. The beta9a version
of hbm2ddl handled this correctly, but the hbm2java would only generate data members for
the property(s) enclosed in the properties element.
Now hbm2ddl duplicates the columns and hbm2java duplicates the data members.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira