mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
Fix for TuplizerDynamicEntityTest and ImprovedTuplizerDynamicEntityTest
This commit is contained in:
parent
16b0b74bd2
commit
d9ac176989
@ -1887,7 +1887,7 @@ public boolean contains(Object object) {
|
||||
checkOpen();
|
||||
// checkTransactionSynchStatus();
|
||||
|
||||
if ( object != null && !HibernateProxy.class.isInstance( object ) ) {
|
||||
if ( object != null && !HibernateProxy.class.isInstance( object ) && persistenceContext.getEntry( object ) == null ) {
|
||||
// check if it is an entity -> if not throw an exception (per JPA)
|
||||
try {
|
||||
getSessionFactory().getMetamodel().entityPersister( object.getClass() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user