mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 14:59:12 +00:00
HHH-15699 HibernateException: Found shared references to a collection when ShareCacheMode.All or ShareCacheMode.DISABLE_SELECTIVE
This commit is contained in:
parent
d9c790cae1
commit
ff973d4580
@ -102,6 +102,12 @@ public void resolveInstance(RowProcessingState rowProcessingState) {
|
||||
if ( loadingEntityLocally != null ) {
|
||||
entityInstance = loadingEntityLocally.getEntityInstance();
|
||||
}
|
||||
if ( entityInstance == null ) {
|
||||
entityInstance = persistenceContext.getEntity( entityKey );
|
||||
if ( entityInstance != null ) {
|
||||
entityInstance = persistenceContext.proxyFor( entityInstance );
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( entityInstance == null ) {
|
||||
if ( referencedModelPart.isOptional() && parentAccess != null && parentAccess.getInitializedPart()
|
||||
|
Loading…
x
Reference in New Issue
Block a user