Looking at the APIs 'and' and 'or', they are in CriteriaBuilder, so the request will look like this:
cq.where(cb.and(
cb.equal(pet.get(Pet_.name), "Fido"),
cb.equal(pet.get(Pet_.color), "brown")));
"name", :
cq.where(cb.or(
cb.and(cb.equal(BeanName_.name1, "value1"),
cb.equal(BeanName_name2, "value2")),
cb.equal(BeanName_.name3, "value3")));
, ( "1" ) :
cb.parameter(String.class, "value1");