Skip to content

Commit 59f721a

Browse files
johnaoharasebersole
authored andcommitted
HHH-10251 : Memory Leak when using Reference Cached, bytecode enhanced Immutable Entities
1 parent 4bfb349 commit 59f721a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/engine/internal/ImmutableEntityEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public ImmutableEntityEntry(
5252
final boolean lazyPropertiesAreUnfetched,
5353
final PersistenceContext persistenceContext) {
5454
this( status, loadedState, rowId, id, version, lockMode, existsInDatabase,
55-
persister,disableVersionIncrement, lazyPropertiesAreUnfetched, persistenceContext );
55+
persister,disableVersionIncrement, lazyPropertiesAreUnfetched, null );
5656
}
5757

5858
public ImmutableEntityEntry(
@@ -69,7 +69,7 @@ public ImmutableEntityEntry(
6969
final PersistenceContext persistenceContext) {
7070

7171
super( status, loadedState, rowId, id, version, lockMode, existsInDatabase, persister,
72-
disableVersionIncrement, lazyPropertiesAreUnfetched, persistenceContext );
72+
disableVersionIncrement, lazyPropertiesAreUnfetched, null );
7373
}
7474

7575
/**

0 commit comments

Comments
 (0)