diff --git a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java index 234557ddc8..6dd7f4b112 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java @@ -941,7 +941,8 @@ public final class SessionImpl extends AbstractSessionImpl implements EventSourc loadEvent = null; if ( event == null ) { event = new LoadEvent( id, object, this ); - } else { + } + else { event.setEntityClassName( null ); event.setEntityId( id ); event.setInstanceToLoad( object );