collectionNotIncludes

fun <T : Any, E> KProperty1<T, Collection<E>>.collectionNotIncludes(subCollection: Collection<E>): PredicateSpecification<T>(source)

Creates a PredicateSpecification that tests whether a native collection column does not contain all elements of the given sub-collection. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.

Return

A PredicateSpecification that tests whether not all elements of the sub-collection are contained in the native collection column.

Parameters

subCollection

the sub-collection whose elements must not all be present in the column.

Type Parameters

T

the type of the entity.

E

the type of the element in the collection.


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

Creates a PredicateSpecification that tests whether a nested native collection column does not contain all elements of the given sub-collection. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.

Return

A PredicateSpecification that tests whether not all elements of the sub-collection are contained in the nested native collection column.

Parameters

subCollection

the sub-collection whose elements must not all be present in the column.

Type Parameters

ROOT

the root entity type.

E

the type of the element in the collection.

PROP

the type of the Collection property.