collectionNotContains

fun <T, E> KProperty1<T, Collection<E>>.collectionNotContains(path: Path<T>, criteriaBuilder: CriteriaBuilder, value: E): Predicate(source)

Creates a Predicate that tests whether a native collection column does not contain a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.

Return

A Predicate that tests whether the element is not contained in the native collection column.

Parameters

path

The path of the entity.

criteriaBuilder

The criteria builder.

value

The element value to check for non-containment.

Type Parameters

T

the type of the entity.

E

the type of the element in the collection.


fun <ROOT, E, PROP : Collection<E>> NestedProperty<ROOT, PROP>.collectionNotContains(path: Path<ROOT>, criteriaBuilder: CriteriaBuilder, value: E): Predicate(source)

Creates a Predicate that tests whether a nested native collection column does not contain a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.

Return

A Predicate that tests whether the element is not contained in the nested native collection column.

Parameters

path

The path of the root entity.

criteriaBuilder

The criteria builder.

value

The element value to check for non-containment.

Type Parameters

ROOT

the root entity type.

E

the type of the element in the collection.

PROP

the type of the Collection property.