[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5853) Natural id lookups cause problems with loading cached owned collections based on a property-ref

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Jan 18 11:12:05 EST 2011


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