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
Post a Comment