Spring data jpa how can i search with multiple optional parameters like
- firstname
- industry
- job title
and other more than 12 paramaters, the parameters are optional may or may not be entered by user. I can easily write queries like findallByFirstnameAndIndustryAndJobTitle but the problem is i need to generate methods based on provided parameters which give me lot of if and else for more than 13 prameters. Is there any effective way to use loop or may be sol;ve this kind of problem ?
Aucun commentaire:
Enregistrer un commentaire