If I want something like that with EclipseLink and JPA 2.0
SELECT ... FROM ... WHERE name1=value1 AND name2=value2 OR name3=value3
Which is the best way?? In the oficial say somthing like:
cq.where(cb.equal(pet.get(Pet_.name), "Fido")
.and(cb.equal(pet.get(Pet_.color), "brown");
http://download.oracle.com/javaee/6/tutorial/doc/gjivm.html#gjiwu
but is imposible with eclipselink because cb.equal(pet.get(Pet_.name), "Fido")
is a Predicate
and not anidate query with .and
Any ideas?