I want to create a search in my java spring boot application ,and i'm using "Spring Data JPA" specification.I want to know how to use multiple predicates in "Spring Data jpa" specification.Here the example i refer.
Asked
Active
Viewed 1,446 times
1 Answers
0
You can only have 1 specification per find. If you want more, you have to link them with an and
or or
function, like:
Predicate orPredicate = builder.or(predicate1, predicate2);

Alexandre Fillatre
- 122
- 8