Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2f2247c

Browse files
committedApr 14, 2025··
HHH-19348 Change scope of private methods in AbstractSharedSessionContract
Change scopes of some private methods to avoid duplication in Hibernate Reactive. Related to hibernate/hibernate-reactive#2181
1 parent 74cb0cf commit 2f2247c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,15 +986,18 @@ private <T> NativeQueryImplementor<T> buildNativeQuery(String sql, @Nullable Cla
986986
}
987987
}
988988

989-
final EntityPersister requireEntityPersister(Class<?> entityClass) {
989+
// Hibernate Reactive may need to use this
990+
protected final EntityPersister requireEntityPersister(Class<?> entityClass) {
990991
return getMappingMetamodel().getEntityDescriptor( entityClass );
991992
}
992993

993-
final EntityPersister requireEntityPersister(String entityName) {
994+
// Hibernate Reactive may need to use this
995+
protected final EntityPersister requireEntityPersister(String entityName) {
994996
return getMappingMetamodel().getEntityDescriptor( entityName );
995997
}
996998

997-
final CollectionPersister requireCollectionPersister(String roleName) {
999+
// Hibernate Reactive may need to use this
1000+
protected final CollectionPersister requireCollectionPersister(String roleName) {
9981001
return getMappingMetamodel().getCollectionDescriptor( roleName );
9991002
}
10001003

0 commit comments

Comments
 (0)
Please sign in to comment.