diff --git a/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java b/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java index a4ab8f635f..d96639eccc 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java @@ -688,7 +688,10 @@ public class NativeQueryImpl .createQueryPlan( queryDefinition, getSessionFactory() ); } - private NativeSelectQueryPlan createCountQueryPlan() { + /* + * Used by Hibernate Reactive + */ + protected NativeSelectQueryPlan createCountQueryPlan() { final BasicType longType = getSessionFactory().getTypeConfiguration().getBasicTypeForJavaType(Long.class); final String sqlString = expandParameterLists(); final NativeSelectQueryDefinition queryDefinition = new NativeSelectQueryDefinition<>() {