I have such a Interface:
interface ItemRepository extends JpaRepository<Item, Integer> {
Item findItemByName(String name);
Collection<Item> findItemByCategory(String category);
}
it does the job without implementation already, but I have to add the following statement:
select from Item where quantity < 10;