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:
parent
f7093239d9
commit
26f6cdab03
|
@ -688,7 +688,10 @@ public class NativeQueryImpl<R>
|
||||||
.createQueryPlan( queryDefinition, getSessionFactory() );
|
.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 BasicType<Long> longType = getSessionFactory().getTypeConfiguration().getBasicTypeForJavaType(Long.class);
|
||||||
final String sqlString = expandParameterLists();
|
final String sqlString = expandParameterLists();
|
||||||
final NativeSelectQueryDefinition<Long> queryDefinition = new NativeSelectQueryDefinition<>() {
|
final NativeSelectQueryDefinition<Long> queryDefinition = new NativeSelectQueryDefinition<>() {
|
||||||
|
|
Loading…
Reference in New Issue