java - Spring CrudRepository findByInventoryIds(List<Long> inventoryIdList) - equivalent to IN clause -


in spring crudrepository, have support "in clause" field? ie similar following?

 findbyinventoryids(list<long> inventoryidlist)  

if such support not available, elegant options can considered? firing queries each id may not optimal.

findbyinventoryidin(list<long> inventoryidlist) should trick.

the http request parameter format so:

yes ?id=1,2,3 no  ?id=1&id=2&id=3 

the complete list of jpa repository keywords can found in current documentation listing. shows isin equivalent – if prefer verb readability – , jpa supports notin , isnotin.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -