HHH-13590 : TransientObjectException merging a non-proxy association to a proxy
This commit is contained in:
parent
11409ed633
commit
148b4b2ed0
|
@ -359,7 +359,7 @@ public class DefaultMergeEventListener extends AbstractSaveEventListener impleme
|
||||||
Object managed,
|
Object managed,
|
||||||
EntityPersister persister,
|
EntityPersister persister,
|
||||||
EventSource source) {
|
EventSource source) {
|
||||||
if ( incoming instanceof HibernateProxy ) {
|
if ( managed instanceof HibernateProxy ) {
|
||||||
return source.getPersistenceContextInternal().unproxy( managed );
|
return source.getPersistenceContextInternal().unproxy( managed );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue