[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2044) DefaultMergeEventListener.entityIsDetached call StaleObjectStateException with wrong identifier

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Sep 1 08:49:25 EDT 2006


     [ 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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list