0

Is is possible to add a delete method that takes two conditions in CrudRepository? For example,

deleteByUserNameAndId(String userName, String itemId)

Thanks and regards, dj

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
desi Joe
  • 363
  • 5
  • 18
  • Yes it is possible. Why wouldn't you even try it first? – Strelok Apr 22 '17 at 06:39
  • Possible duplicate of [Spring Data JPA: How to create "delete by multiple properties" method?](https://stackoverflow.com/questions/39923434/spring-data-jpa-how-to-create-delete-by-multiple-properties-method) – Jens Schauder Feb 21 '18 at 06:03
  • Possible duplicate of [Spring Data: "delete by" is supported?](https://stackoverflow.com/questions/23723025/spring-data-delete-by-is-supported) – Hamedz May 04 '18 at 18:29

0 Answers0