HibernateCriteriaBuilder should use varargs

in some cases, it overrides JPA methods with non-varargs forms
This commit is contained in:
Gavin 2023-05-28 01:42:58 +02:00 committed by Gavin King
parent d8fb935ae0
commit 23b55db51a
1 changed files with 6 additions and 6 deletions

View File

@ -277,18 +277,18 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
// Selections
@Override
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, Selection<?>[] selections);
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, Selection<?>... selections);
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments);
@Override
JpaCompoundSelection<Tuple> tuple(Selection<?>[] selections);
JpaCompoundSelection<Tuple> tuple(Selection<?>... selections);
JpaCompoundSelection<Tuple> tuple(List<? extends JpaSelection<?>> selections);
@Override
JpaCompoundSelection<Object[]> array(Selection<?>[] selections);
JpaCompoundSelection<Object[]> array(Selection<?>... selections);
JpaCompoundSelection<Object[]> array(List<? extends JpaSelection<?>> selections);
<Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, Selection<?>[] selections);
<Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, Selection<?>... selections);
<Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, List<? extends JpaSelection<?>> selections);
@ -405,7 +405,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
<T> JpaExpression<T> literal(T value);
<T> SqmExpression<T> literal(T value, SqmExpression<? extends T> typeInferenceSource);
<T> List<? extends JpaExpression<T>> literals(T[] values);
<T> List<? extends JpaExpression<T>> literals(T... values);
<T> List<? extends JpaExpression<T>> literals(List<T> values);
@ -498,7 +498,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
JpaFunction<Instant> currentInstant();
@Override
<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>[] args);
<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>... args);
@Override
<Y> JpaExpression<Y> all(Subquery<Y> subquery);