HHH-4489 need method "refresh(String entityName, Object obj)"

This commit is contained in:
Strong Liu 2011-05-31 00:05:09 +08:00
parent eb5bc1609d
commit 625d781af1
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class DefaultRefreshEventListener implements RefreshEventListener {
final Serializable id;
if ( e == null ) {
persister = source.getEntityPersister(null, object); //refresh() does not pass an entityName
persister = source.getEntityPersister(event.getEntityName(), object); //refresh() does not pass an entityName
id = persister.getIdentifier( object, event.getSession() );
if (LOG.isTraceEnabled()) LOG.trace("Refreshing transient "
+ MessageHelper.infoString(persister, id, source.getFactory()));