spring data jpa - writing finb by query with one AND and OR -


how can write spring data jpa exist finby methods for

where id="1" , (status ="n" or status ="k") 

i had tried findbyidandstatusorstatus(1,"n","k") not working

if have id have unique entity no need search it, suppose gave unfortunate example. try using following work:

findbysomepropertyandstatusin(someproperty property,collection<status> statuses); 

Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -