Skip to content

Commit a97606f

Browse files
DavideDsebersole
authored andcommitted
HHH-19683 Add AbstractEntityPersister#isNonLazyFieldName
For Hibernate Reactive
1 parent fab70dd commit a97606f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,11 +1576,16 @@ protected Object initializeLazyPropertiesFromDatastore(
15761576
final EntityEntry entry,
15771577
final String fieldName,
15781578
final SharedSessionContractImplementor session) {
1579-
return nonLazyPropertyNames.contains( fieldName )
1579+
return isNonLazyPropertyName( fieldName )
15801580
? initLazyProperty( entity, id, entry, fieldName, session )
15811581
: initLazyProperties( entity, id, entry, fieldName, session );
15821582
}
15831583

1584+
// Hibernate Reactive uses this
1585+
protected boolean isNonLazyPropertyName(String fieldName) {
1586+
return nonLazyPropertyNames.contains( fieldName );
1587+
}
1588+
15841589
private Object initLazyProperties(
15851590
Object entity,
15861591
Object id,

0 commit comments

Comments
 (0)