[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6752) extractKeysFromResultSet tries to create EntityKeys on null compound keys
Patrice Blanchardie (JIRA)
noreply at atlassian.com
Tue Nov 8 20:49:19 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44276#comment-44276 ]
Patrice Blanchardie commented on HHH-6752:
------------------------------------------
Even if data is corrupt is this situation, error handling is not very clear
> 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