Macpeters
0
Q:

java repository sql find not in list

    @Query("FROM entity AS e WHERE e.id NOT IN ?1")
    List<ObjectName> findByNotId(List<Long> ids);
0
@Query( "select o from MyObject o where inventoryId in :ids" )
List<MyObject> findByInventoryIds(@Param("ids") List<Long> inventoryIdList);
0

New to Communities?

Join the community