File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,12 @@ public static boolean isInitialized(Object proxy) {
116
116
}
117
117
else if ( isPersistentAttributeInterceptable ( proxy ) ) {
118
118
final PersistentAttributeInterceptor interceptor = asPersistentAttributeInterceptable ( proxy ).$$_hibernate_getInterceptor ();
119
- return !(interceptor instanceof EnhancementAsProxyLazinessInterceptor );
119
+ if (interceptor instanceof EnhancementAsProxyLazinessInterceptor ) {
120
+ return ( (EnhancementAsProxyLazinessInterceptor ) interceptor ).isInitialized ();
121
+ }
122
+ else {
123
+ return true ;
124
+ }
120
125
}
121
126
else if ( proxy instanceof LazyInitializable ) {
122
127
return ( (LazyInitializable ) proxy ).wasInitialized ();
You can’t perform that action at this time.
0 commit comments