Skip to content

Commit 3dada25

Browse files
gavinkingmbellade
andcommitted
remove unnecessary call
Co-authored-by: Marco Belladelli <[email protected]>
1 parent 240dbac commit 3dada25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hibernate-core/src/main/java/org/hibernate/query/internal/QueryParameterBindingsImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import static org.hibernate.engine.internal.ManagedTypeHelper.isHibernateProxy;
3333
import static org.hibernate.internal.util.collections.CollectionHelper.linkedMapOfSize;
3434
import static org.hibernate.internal.util.collections.CollectionHelper.mapOfSize;
35-
import static org.hibernate.proxy.HibernateProxy.extractLazyInitializer;
3635

3736
/**
3837
* Manages the group of QueryParameterBinding for a particular query.
@@ -202,7 +201,7 @@ public boolean hasAnyTransientEntityBindings(SharedSessionContractImplementor se
202201

203202
private static boolean isTransientEntityBinding(
204203
SharedSessionContractImplementor session, QueryParameterBinding<?> binding, Object value) {
205-
return value != null && !isHibernateProxy( value ) && extractLazyInitializer( value ) == null
204+
return value != null && !isHibernateProxy( value )
206205
&& binding.getBindType() instanceof EntityDomainType<?> entityDomainType
207206
&& session.getFactory().getMappingMetamodel()
208207
.getEntityDescriptor( entityDomainType.getHibernateEntityName() )

0 commit comments

Comments
 (0)