We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a3bfd5 commit 89fcee4Copy full SHA for 89fcee4
hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/internal/EntityInitializerImpl.java
@@ -1087,6 +1087,12 @@ protected void resolveEntityInstance1(EntityInitializerData data) {
1087
}
1088
else {
1089
data.setInstance( proxy );
1090
+ /* uncommenting this branch fixes my situation (but might break others)
1091
+ if ( data.entityHolder.isInitialized() ) {
1092
+ data.setState( State.INITIALIZED );
1093
+ data.entityInstanceForNotify = data.entityHolder.getEntity();
1094
+ }
1095
+ else */
1096
if ( Hibernate.isInitialized( proxy ) ) {
1097
data.setState( State.INITIALIZED );
1098
data.entityInstanceForNotify = Hibernate.unproxy( proxy );
0 commit comments