HHH-7912 - Define edge-case behavior for Session.evict
(cherry picked from commit 0ffe6e7115
)
This commit is contained in:
parent
8c96a4a2c6
commit
c94870d9fd
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012, Red Hat Inc. or third-party contributors as
|
* Copyright (c) 2013, Red Hat Inc. or third-party contributors as
|
||||||
* indicated by the @author tags or express copyright attribution
|
* indicated by the @author tags or express copyright attribution
|
||||||
* statements applied by the authors. All third-party contributions are
|
* statements applied by the authors. All third-party contributions are
|
||||||
* distributed under license by Red Hat Inc.
|
* distributed under license by Red Hat Inc.
|
||||||
|
@ -163,7 +163,7 @@ public class EntityEntryContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( managedEntity == null ) {
|
if ( managedEntity == null ) {
|
||||||
throw new AssertionFailure( "Unable to resolve entity reference to EntityEntry for removal" );
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// prepare for re-linking...
|
// prepare for re-linking...
|
||||||
|
|
Loading…
Reference in New Issue