]
Steve Ebersole updated HHH-5853:
--------------------------------
Attachment: CollectionIssue_TestProgram.zip
Test case originally attached to HHH-3121 by Samuel
Natural id lookups cause problems with loading cached owned
collections based on a property-ref
-----------------------------------------------------------------------------------------------
Key: HHH-5853
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5853
Project: Hibernate Core
Issue Type: Bug
Components: core
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: 3.6.1
Attachments: CollectionIssue_TestProgram.zip
See the attached test case for specifics.
Essentially we have an entity which:
# contains a natural-id definition
# contains a collection, whose key is defined using a property-ref
Trying to perform a lookup by natural id triggers the error.
Workarounds include:
# Not doing the natural id lookup, but opt for the pk lookup.
# removing the property-ref, using the PK as the FK target
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: