HHH-16954 Change name of method parameterList to listParameter
This commit is contained in:
parent
71fefc7220
commit
c92c2f5f21
|
@ -644,7 +644,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
||||||
* @param <T> the type of each argument to the parameter
|
* @param <T> the type of each argument to the parameter
|
||||||
* @since 7.0
|
* @since 7.0
|
||||||
*/
|
*/
|
||||||
<T> JpaParameterExpression<List<T>> parameterList(Class<T> paramClass);
|
<T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a multivalued parameter accepting multiple arguments
|
* Create a multivalued parameter accepting multiple arguments
|
||||||
|
@ -654,7 +654,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder {
|
||||||
* @param <T> the type of each argument to the parameter
|
* @param <T> the type of each argument to the parameter
|
||||||
* @since 7.0
|
* @since 7.0
|
||||||
*/
|
*/
|
||||||
<T> JpaParameterExpression<List<T>> parameterList(Class<T> paramClass, String name);
|
<T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass, String name);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
JpaExpression<String> concat(Expression<String> x, Expression<String> y);
|
JpaExpression<String> concat(Expression<String> x, Expression<String> y);
|
||||||
|
|
|
@ -682,13 +682,13 @@ public class HibernateCriteriaBuilderDelegate implements HibernateCriteriaBuilde
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <T> JpaParameterExpression<List<T>> parameterList(Class<T> paramClass) {
|
public <T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass) {
|
||||||
return criteriaBuilder.parameterList( paramClass );
|
return criteriaBuilder.listParameter( paramClass );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <T> JpaParameterExpression<List<T>> parameterList(Class<T> paramClass, String name) {
|
public <T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass, String name) {
|
||||||
return criteriaBuilder.parameterList( paramClass, name );
|
return criteriaBuilder.listParameter( paramClass, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1665,12 +1665,12 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <T> JpaParameterExpression<List<T>> parameterList(Class<T> paramClass) {
|
public <T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass) {
|
||||||
return parameterList( paramClass, null );
|
return listParameter( paramClass, null );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <T> JpaParameterExpression<List<T>> parameterList(Class<T> paramClass, String name) {
|
public <T> JpaParameterExpression<List<T>> listParameter(Class<T> paramClass, String name) {
|
||||||
final BindableType<List<T>> parameterType = new MultiValueParameterType<>( (Class<List<T>>) (Class) List.class );
|
final BindableType<List<T>> parameterType = new MultiValueParameterType<>( (Class<List<T>>) (Class) List.class );
|
||||||
return new JpaCriteriaParameter<>( name, parameterType, true, this );
|
return new JpaCriteriaParameter<>( name, parameterType, true, this );
|
||||||
}
|
}
|
||||||
|
|
|
@ -502,7 +502,7 @@ public class CteTests {
|
||||||
scope.inTransaction(
|
scope.inTransaction(
|
||||||
session -> {
|
session -> {
|
||||||
final HibernateCriteriaBuilder cb = session.getCriteriaBuilder();
|
final HibernateCriteriaBuilder cb = session.getCriteriaBuilder();
|
||||||
final JpaParameterExpression<List<Integer>> param = cb.parameterList( Integer.class );
|
final JpaParameterExpression<List<Integer>> param = cb.listParameter( Integer.class );
|
||||||
final JpaCriteriaQuery<Tuple> cq = cb.createTupleQuery();
|
final JpaCriteriaQuery<Tuple> cq = cb.createTupleQuery();
|
||||||
|
|
||||||
final JpaCriteriaQuery<Tuple> baseQuery = cb.createTupleQuery();
|
final JpaCriteriaQuery<Tuple> baseQuery = cb.createTupleQuery();
|
||||||
|
|
|
@ -521,7 +521,7 @@ public class CriteriaBuilderNonStandardFunctionsTest {
|
||||||
HibernateCriteriaBuilder cb = session.getCriteriaBuilder();
|
HibernateCriteriaBuilder cb = session.getCriteriaBuilder();
|
||||||
CriteriaQuery<Tuple> query = cb.createTupleQuery();
|
CriteriaQuery<Tuple> query = cb.createTupleQuery();
|
||||||
Root<EntityOfBasics> from = query.from(EntityOfBasics.class);
|
Root<EntityOfBasics> from = query.from(EntityOfBasics.class);
|
||||||
ParameterExpression<List<Integer>> ids = cb.parameterList(Integer.class);
|
ParameterExpression<List<Integer>> ids = cb.listParameter(Integer.class);
|
||||||
query.where( from.get("id").in(ids));
|
query.where( from.get("id").in(ids));
|
||||||
assertEquals(3,
|
assertEquals(3,
|
||||||
session.createQuery( query )
|
session.createQuery( query )
|
||||||
|
|
Loading…
Reference in New Issue