]
Patrice Blanchardie commented on HHH-6752:
------------------------------------------
There are workarounds (avoid composite key, use lazy, etc.) but it could be nice to use
this mapping!
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: