Delete Not Working with JpaRepository

前端 未结 12 2024
情书的邮戳
情书的邮戳 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:58

    @Transactional
    int deleteAuthorByName(String name);
    

    you should write @Transactional in Repository extends JpaRepository

提交回复
热议问题