HHH-18254 Change `NativeQueryImpl#createCountQueryPlan` scope to protected

So that I can re-use the code when implementing ReactiveSelectQueryPlan#getReactiveResultsCount in Hibernate Reactive
This commit is contained in:
Davide D'Alto 2024-06-11 10:37:05 +02:00 committed by Christian Beikov
parent f7093239d9
commit 26f6cdab03
1 changed files with 4 additions and 1 deletions

View File

@ -688,7 +688,10 @@ public class NativeQueryImpl<R>
.createQueryPlan( queryDefinition, getSessionFactory() );
}
private NativeSelectQueryPlan<Long> createCountQueryPlan() {
/*
* Used by Hibernate Reactive
*/
protected NativeSelectQueryPlan<Long> createCountQueryPlan() {
final BasicType<Long> longType = getSessionFactory().getTypeConfiguration().getBasicTypeForJavaType(Long.class);
final String sqlString = expandParameterLists();
final NativeSelectQueryDefinition<Long> queryDefinition = new NativeSelectQueryDefinition<>() {