I’m trying to do a basic ‘OR’ on three fields using a hibernate criteria query.
Example
class Whatever{ string name; string address; string phoneNumber; }
I’d like to build a criteria query where my search string could match ‘name’ or ‘address’ or ‘phoneNumber’.
You want to use
Restrictions.disjuntion(). Like soSee the Hibernate doc here.