diff --git a/hibernate-core/src/main/java/org/hibernate/procedure/internal/FunctionReturnImpl.java b/hibernate-core/src/main/java/org/hibernate/procedure/internal/FunctionReturnImpl.java index a394425407..8f9030473f 100644 --- a/hibernate-core/src/main/java/org/hibernate/procedure/internal/FunctionReturnImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/procedure/internal/FunctionReturnImpl.java @@ -7,6 +7,8 @@ package org.hibernate.procedure.internal; +import java.sql.CallableStatement; +import java.sql.SQLException; import java.sql.Types; import jakarta.persistence.ParameterMode; @@ -130,4 +132,10 @@ public class FunctionReturnImpl implements FunctionReturnImplementor { } }; } + + @Override + public void prepare(CallableStatement statement, int startIndex, ProcedureCallImplementor callImplementor) + throws SQLException { + throw new NotYetImplementedFor6Exception( getClass() ); + } } diff --git a/hibernate-core/src/main/java/org/hibernate/procedure/spi/ProcedureParameterImplementor.java b/hibernate-core/src/main/java/org/hibernate/procedure/spi/ProcedureParameterImplementor.java index 7f8b900db0..0087bd6ad6 100644 --- a/hibernate-core/src/main/java/org/hibernate/procedure/spi/ProcedureParameterImplementor.java +++ b/hibernate-core/src/main/java/org/hibernate/procedure/spi/ProcedureParameterImplementor.java @@ -10,7 +10,6 @@ import java.sql.CallableStatement; import java.sql.SQLException; import org.hibernate.Incubating; -import org.hibernate.NotYetImplementedFor6Exception; import org.hibernate.query.procedure.ProcedureParameter; import org.hibernate.query.spi.QueryParameterImplementor; @@ -27,10 +26,8 @@ public interface ProcedureParameterImplementor extends ProcedureParameter, * * @throws SQLException Indicates a problem with any underlying JDBC calls */ - default void prepare( + void prepare( CallableStatement statement, int startIndex, - ProcedureCallImplementor callImplementor) throws SQLException{ - throw new NotYetImplementedFor6Exception( getClass() ); - } + ProcedureCallImplementor callImplementor) throws SQLException; } diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.java index 6ea630336c..41e7d593d1 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.java @@ -90,12 +90,14 @@ import org.hibernate.query.sqm.tree.predicate.SqmOrPredicate; import org.hibernate.query.sqm.tree.predicate.SqmPredicate; import org.hibernate.query.sqm.tree.predicate.SqmWhereClause; import org.hibernate.query.sqm.tree.select.SqmDynamicInstantiation; +import org.hibernate.query.sqm.tree.select.SqmJpaCompoundSelection; import org.hibernate.query.sqm.tree.select.SqmOrderByClause; import org.hibernate.query.sqm.tree.select.SqmQueryGroup; import org.hibernate.query.sqm.tree.select.SqmQueryPart; import org.hibernate.query.sqm.tree.select.SqmQuerySpec; import org.hibernate.query.sqm.tree.select.SqmSelectClause; import org.hibernate.query.sqm.tree.select.SqmSelectStatement; +import org.hibernate.query.sqm.tree.select.SqmSelectableNode; import org.hibernate.query.sqm.tree.select.SqmSelection; import org.hibernate.query.sqm.tree.select.SqmSortSpecification; import org.hibernate.query.sqm.tree.select.SqmSubQuery; @@ -463,6 +465,20 @@ public class SqmTreePrinter implements SemanticQueryWalker { return null; } + @Override + public Object visitJpaCompoundSelection(SqmJpaCompoundSelection selection) { + processStanza( + "JpaCompoundSelection", + () -> { + for ( SqmSelectableNode selectionItem : selection.getSelectionItems() ) { + selectionItem.accept( this ); + } + } + ); + + return null; + } + @Override public Object visitFromClause(SqmFromClause fromClause) { processStanza(