[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2282?page=all ]
Steve Ebersole closed HHH-2282:
-------------------------------
Resolution: Fixed
trunk / 3.2
PersistentClass property lookups do not properly account for embedded
composite identifiers
-------------------------------------------------------------------------------------------
Key: HHH-2282
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2282
Project: Hibernate3
Type: Improvement
Components: metamodel
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: 3.2.2
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...
--
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