[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2265) allow property-refs to refer to portions of the owner's composite identifier

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Nov 27 11:16:04 EST 2006


allow property-refs to refer to portions of the owner's composite identifier
----------------------------------------------------------------------------

         Key: HHH-2265
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2265
     Project: Hibernate3
        Type: Improvement

  Components: core  
    Versions: 3.2.1    
    Reporter: Steve Ebersole
 Assigned to: Steve Ebersole 
     Fix For: 3.2.2


Currently property-refs cannot reference portions of a composite identifier, neither embedded or mapped variations.

For example,
<class name="Discount">
    <composite-id>
        <key-property name="customerId" ... />
        <key-property name="baseCode" column="DISCOUNT_BASE_CODE"... />
    </composite-id>
    <set ...>
        <key column="CODE_BASE_CODE" property-ref="id.basecode"/>
        <one-to-many class="Code"/>
    </set>
</class>

<class name="Code">
    <!-- some property mapped to a CODE_BASE_CODE column -->
    ...
</class>


-- 
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