arrayContains
Creates a Predicate that tests whether a native array column contains a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.
Return
A Predicate that tests whether the element is contained in the native array column.
Parameters
The path of the entity.
The criteria builder.
The element value to check for containment.
Type Parameters
the type of the entity.
the type of the element in the array.
Creates a Predicate that tests whether a nested native array column contains a given element. Use this for properties mapped with @JdbcTypeCode(SqlTypes.ARRAY) and typed as Array.
Return
A Predicate that tests whether the element is contained in the nested native array column.
Parameters
The path of the root entity.
The criteria builder.
The element value to check for containment.
Type Parameters
the root entity type.
the type of the element in the array.