arrayContains

fun <T : Any, E> KProperty1<T, Collection<E>>.arrayContains(value: E): PredicateSpecification<T>(source)

Creates a PredicateSpecification that tests whether an element is contained in a native array column. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY).

Receiver

T – the type of the entity.

E - the type of the element in the array.

Return

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

Parameters

value

the element value to check for containment.


fun <ROOT : Any, E, PROP : Collection<E>> NestedProperty<ROOT, PROP>.arrayContains(value: E): PredicateSpecification<ROOT>(source)

Creates a PredicateSpecification that tests whether an element is contained in a nested native array column. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY).

Receiver

ROOT – the root entity type.

E - the type of the element in the array.

PROP - the type of the Collection property.

Return

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

Parameters

value

the element value to check for containment.