New Hibernate how to do a "Or" condition


#1

Hi
in Hibernate 5.0, we can do something like
Criterion criteria = Restrictions.or(Restrictions.ilike(“Name1”, Name),
Restrictions.ilike(“Name2”, Name))

in Hibernate 5.2.17, how to do the similar query ?

thanks


#2

Just the same for Hibernate Criteria. For JPA Criteria, check out the User Guide.