Hibernate Criteria API - adding a criterion: string should be in collection
Posted
by Kim L
on Stack Overflow
See other posts from Stack Overflow
or by Kim L
Published on 2010-04-29T06:00:24Z
Indexed on
2010/04/29
6:27 UTC
Read the original article
Hit count: 365
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.
© Stack Overflow or respective owner