mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
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 Set<String> getAffectedTableNames() {
|
||||
.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…
x
Reference in New Issue
Block a user