Delete Not Working with JpaRepository

前端 未结 12 2036
情书的邮戳
情书的邮戳 2020-12-07 11:55

I have a spring 4 app where I\'m trying to delete an instance of an entity from my database. I have the following entity:

@Entity
public class Token impleme         


        
12条回答
  •  粉色の甜心
    2020-12-07 12:47

    If you use an newer version of Spring Data, you could use deleteBy syntax...so you are able to remove one of your annotations :P

    the next thing is, that the behaviour is already tract by a Jira ticket: https://jira.spring.io/browse/DATAJPA-727

提交回复
热议问题