[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6752) extractKeysFromResultSet tries to create EntityKeys on null compound keys

Patrice Blanchardie (JIRA) noreply at atlassian.com
Fri Oct 21 08:46:20 EDT 2011


extractKeysFromResultSet tries to create EntityKeys on null compound keys
-------------------------------------------------------------------------

                 Key: HHH-6752
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6752
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.7
         Environment: 3.6.7.Final
            Reporter: Patrice Blanchardie
            Priority: Blocker
         Attachments: testcase.zip

When a compound key containing a many-to-one is part of a result set, but null, Loader.extractKeysFromResultSet invokes new EntityKey on it

Loader.java, l 688:

keys[targetIndex] = new EntityKey( targetId, persisters[targetIndex], session.getEntityMode() );

when targetId is null, this should not be called.

See attached test case with comments

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list