arrayIntersects

fun <T : Any, E> KProperty1<T, Array<E>>.arrayIntersects(subArray: Array<E>): PredicateSpecification<T>(source)

Creates a PredicateSpecification that tests whether a native array column shares at least one element with the given sub-array. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.

Return

A PredicateSpecification that tests whether the native array column intersects with the given sub-array.

Parameters

subArray

the sub-array to check for overlap.

Type Parameters

T

the type of the entity.

E

the type of the element in the array.


fun <ROOT : Any, E> NestedProperty<ROOT, Array<E>>.arrayIntersects(subArray: Array<E>): PredicateSpecification<ROOT>(source)

Creates a PredicateSpecification that tests whether a nested native array column shares at least one element with the given sub-array. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.

Return

A PredicateSpecification that tests whether the nested native array column intersects with the given sub-array.

Parameters

subArray

the sub-array to check for overlap.

Type Parameters

ROOT

the root entity type.

E

the type of the element in the array.