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

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -