category kann nach listen ID gefunden werden
This commit is contained in:
1 parent
c1bd997e33
commit
7db358721d
1 file changed
+3
@@ -12,7 +12,10 @@ import java.util.UUID;
|
||||
|
||||
public interface ShoppingCategoryRepository extends JpaRepository<ShoppingCategory, UUID>{
|
||||
List<ShoppingCategory> findByList(ShoppingList list);
|
||||
List<ShoppingCategory> findByList_Id(UUID listID);
|
||||
@Modifying
|
||||
@Query("DELETE FROM ShoppingCategory c WHERE c.list.id = :listID")
|
||||
void deleteByListId(@Param("listID") UUID listID);
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user