I use List objects in Restrictions.in methods, now I must use this case at Restrictions.like
But Restrictions.like doesn't receive List param. How Can I solve this problem?
My code is bottom:
public void setPhones(Set<String> phones) {
this.phones.addAll(phones);
if (!this.phones.isEmpty()) {
aliases.add(new QueryAlias("profile", "profile"));
criterions.add(Restrictions.like("profile.phone", this.phones));
}
}