Online to find all the where (="XXX and XXX xx1=" xx1 ") or (="XXX and XXX xx2=" xx2 ")
This XXX="XXX" don't write again, and again, or only one, I can't write all again, so I want to ask to have no good method?
CodePudding user response:
Think of a way, I need the or another Criteria, these two conditions alone again and go in theExample. The Criteria criteria2=Example. CreateCriteria () andEqualTo () orEqualTo ()
Example. And (criteria2);