[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2044?page=all ]
Steve Ebersole closed HHH-2044:
-------------------------------
Fix Version: 3.2.1
Resolution: Fixed
Assign To: Steve Ebersole
fixed trunk/3.2
DefaultMergeEventListener.entityIsDetached call
StaleObjectStateException with wrong identifier
-----------------------------------------------------------------------------------------------
Key: HHH-2044
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2044
Project: Hibernate3
Type: Bug
Versions: 3.2.0.cr4
Reporter: Salvatore Insalaco
Assignee: Steve Ebersole
Priority: Minor
Fix For: 3.2.1
At line 241:
throw new StaleObjectStateException( entityName, event.getRequestedId() );
Should be:
throw new StaleObjectStateException( entityName, id );
Because:
if ( id == null ) {
id = persister.getIdentifier( entity, source.getEntityMode() );
}
Otherwise sometimes the ID reported by StaleObjectException is null.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira