1

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.

Neil Stockton
  • 11,383
  • 3
  • 34
  • 29
Hasitha Diluka
  • 766
  • 6
  • 13

1 Answers1

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);