Skip to content

Commit 81b785d

Browse files
gavinkingmbellade
andcommitted
remove unnecessary call
Co-authored-by: Marco Belladelli <marcobladel@gmail.com>
1 parent 77a5ed5 commit 81b785d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public boolean hasAnyTransientEntityBindings(SharedSessionContractImplementor se
202202

203203
private static boolean isTransientEntityBinding(
204204
SharedSessionContractImplementor session, QueryParameterBinding<?> binding, Object value) {
205-
return value != null && !isHibernateProxy( value ) && extractLazyInitializer( value ) == null
205+
return value != null && !isHibernateProxy( value )
206206
&& binding.getBindType() instanceof EntityDomainType<?> entityDomainType
207207
&& session.getFactory().getMappingMetamodel()
208208
.getEntityDescriptor( entityDomainType.getHibernateEntityName() )

0 commit comments

Comments
 (0)