arrayIncludes

fun <T, E> KProperty1<T, Array<E>>.arrayIncludes(path: Path<T>, criteriaBuilder: CriteriaBuilder, subArray: Array<E>): Predicate(source)

Creates a Predicate that tests whether a native array column contains all elements of the given sub-array. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.

Return

A Predicate that tests whether all elements of the sub-array are contained in the native array column.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

subArray

The sub-array whose elements must all be present in the column.

Type Parameters

T

the type of the entity.

E

the type of the element in the array.


fun <ROOT, E> NestedProperty<ROOT, Array<E>>.arrayIncludes(path: Path<ROOT>, criteriaBuilder: CriteriaBuilder, subArray: Array<E>): Predicate(source)

Creates a Predicate that tests whether a nested native array column contains all elements of the given sub-array. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.

Return

A Predicate that tests whether all elements of the sub-array are contained in the nested native array column.

Parameters

path

The path of the root entity.

criteriaBuilder

The criteria builder.

subArray

The sub-array whose elements must all be present in the column.

Type Parameters

ROOT

the root entity type.

E

the type of the element in the array.