Can i have a query, where i have one "and" and three "or" conditions?
I tried with this one, but it has webmegjel = 2 entries in the list, so it does and or or , not and (or or). I tried to give extra parentheses for the "or"-s, didn't help me.
Store.box<Cikkek>().query(Cikkek_.webmegjel.equals(1)
.and(Cikkek_.cikknev.contains(search)
.or(Cikkek_.cikkszam.startsWith(search)
.or(Cikkek_.gyarto.contains(search)
))).build().find()
I would like to have a list where Cikkek_.webmegjel.equals(1) always true, and one of the other three conditions.
Is that possible? Or do i need to do 2 queries for this?