Skip to content

Commit dbfaa0d

Browse files
DavideDbeikov
authored andcommitted
HHH-18254 Change NativeQueryImpl#createCountQueryPlan scope to protected
So that I can re-use the code when implementing ReactiveSelectQueryPlan#getReactiveResultsCount in Hibernate Reactive
1 parent 721452a commit dbfaa0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,10 @@ public Set<String> getAffectedTableNames() {
688688
.createQueryPlan( queryDefinition, getSessionFactory() );
689689
}
690690

691-
private NativeSelectQueryPlan<Long> createCountQueryPlan() {
691+
/*
692+
* Used by Hibernate Reactive
693+
*/
694+
protected NativeSelectQueryPlan<Long> createCountQueryPlan() {
692695
final BasicType<Long> longType = getSessionFactory().getTypeConfiguration().getBasicTypeForJavaType(Long.class);
693696
final String sqlString = expandParameterLists();
694697
final NativeSelectQueryDefinition<Long> queryDefinition = new NativeSelectQueryDefinition<>() {

0 commit comments

Comments
 (0)