collectionIntersects
Creates a Predicate that tests whether a native collection column shares at least one element with the given sub-collection. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.
Return
A Predicate that tests whether the native collection column intersects with the given sub-collection.
Parameters
The path of the entity.
The criteria builder.
The sub-collection to check for overlap.
Type Parameters
the type of the entity.
the type of the element in the collection.
Creates a Predicate that tests whether a nested native collection column shares at least one element with the given sub-collection. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.
Return
A Predicate that tests whether the nested native collection column intersects with the given sub-collection.
Parameters
The path of the root entity.
The criteria builder.
The sub-collection to check for overlap.
Type Parameters
the root entity type.
the type of the element in the collection.
the type of the Collection property.