[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-996) hbm2java duplicates the property(s) referenced in the <properties> element

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Tue Oct 9 05:32:38 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28386 ] 

Max Rydahl Andersen commented on HBX-996:
-----------------------------------------

hbm2ddl is actually calling into Hibernate 3.2 so something must have changed there...

I'm not even sure the above is legal....

> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list