Hibernate Criteria API - adding a criterion: string should be in collection
- by Kim L
I have to following entity object
@Entity
public class Foobar {
...
private List<String> uuids;
...
}
Now I'd like to make a criteria query which would fetch all Foobar pojos whose uuids list contains the string "abc123", I'm just not sure how to make the appropriate criterion.