Issue Details (XML | Word | Printable)

Key: HHH-2282
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Steve Ebersole
Reporter: Steve Ebersole
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Core

PersistentClass property lookups do not properly account for embedded composite identifiers

Created: 04/Dec/06 12:05 PM   Updated: 05/Dec/06 08:43 AM
Component/s: metamodel
Affects Version/s: None
Fix Version/s: 3.2.2

Time Tracking:
Not Specified

Issue Links:
Prerequisite
 


 Description  « Hide
For example, given:

<class Order ...>
    <composite-id>
        <key-property name="customerId" .../>
        <key-property name="orderNumber" .../>
    </composite-id>
</class>

the following calls all fail to locate the property:
cfg.getClassMapping( Order.class.getName() ).getProperty( "customerId" );
cfg.getClassMapping( Order.class.getName() ).getReferencedProperty( "customerId" );
cfg.getClassMapping( Order.class.getName() ).getRecursiveProperty( "customerId" );

This is due to the special handling of the identifier...

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Steve Ebersole added a comment - 05/Dec/06 08:42 AM
trunk / 3.2