HibernateCriteriaBuilder should use varargs
in some cases, it overrides JPA methods with non-varargs forms
This commit is contained in:
parent
d8fb935ae0
commit
23b55db51a
|
@ -277,18 +277,18 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
||||||
// Selections
|
// Selections
|
||||||
|
|
||||||
@Override
|
@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);
|
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
JpaCompoundSelection<Tuple> tuple(Selection<?>[] selections);
|
JpaCompoundSelection<Tuple> tuple(Selection<?>... selections);
|
||||||
JpaCompoundSelection<Tuple> tuple(List<? extends JpaSelection<?>> selections);
|
JpaCompoundSelection<Tuple> tuple(List<? extends JpaSelection<?>> selections);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
JpaCompoundSelection<Object[]> array(Selection<?>[] selections);
|
JpaCompoundSelection<Object[]> array(Selection<?>... selections);
|
||||||
JpaCompoundSelection<Object[]> array(List<? extends JpaSelection<?>> 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);
|
<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> JpaExpression<T> literal(T value);
|
||||||
<T> SqmExpression<T> literal(T value, SqmExpression<? extends T> typeInferenceSource);
|
<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);
|
<T> List<? extends JpaExpression<T>> literals(List<T> values);
|
||||||
|
|
||||||
|
@ -498,7 +498,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
||||||
JpaFunction<Instant> currentInstant();
|
JpaFunction<Instant> currentInstant();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>[] args);
|
<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>... args);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
<Y> JpaExpression<Y> all(Subquery<Y> subquery);
|
<Y> JpaExpression<Y> all(Subquery<Y> subquery);
|
||||||
|
|
Loading…
Reference in New Issue