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
721452a05f
commit
dbfaa0d4f2
|
@ -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<>() {
|
||||
|
|
Loading…
Reference in New Issue