jparepository query code example
Example 1: spring boot jpa in clause
@Query( "select o from MyObject o where inventoryId in :ids" )
List<MyObject> findByInventoryIds(@Param("ids") List<Long> inventoryIdList);
Example 2: findbyname in jpa
List<User> findTop3ByAge()