collectionContains
Creates a Specification that tests whether a native collection column contains a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.
Return
A Specification that tests whether the element is contained in the native collection column.
Parameters
the element value to check for containment.
Type Parameters
the type of the entity.
the type of the element in the collection.
Creates a Specification that tests whether a nested native collection column contains a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Collection.
Return
A Specification that tests whether the element is contained in the nested native collection column.
Parameters
the element value to check for containment.
Type Parameters
the root entity type.
the type of the element in the collection.
the type of the Collection property.