arrayContains

fun <T : Any, E> KProperty1<T, Array<E>>.arrayContains(value: E): Specification<T>(source)

Creates a Specification that tests whether a native array column contains a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.

Return

A Specification that tests whether the element is contained in the native array column.

Parameters

value

the element value to check for containment.

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>>.arrayContains(value: E): Specification<ROOT>(source)

Creates a Specification that tests whether a nested native array column contains a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.

Return

A Specification that tests whether the element is contained in the nested native array column.

Parameters

value

the element value to check for containment.

Type Parameters

ROOT

the root entity type.

E

the type of the element in the array.