JPA不支持delete的问题解决--- JPA Not supported for DML operations

在JPA的代码中,如果使用自定义update、delete语句时,例如:
@Query("delete from table t where t.id = ?1")
会碰到”Not supported for DML operations [delete “问题,解决方法,加上Modifying注解
@Modifying
@Query("delete from CfgComponentColumn c where c.component.id = ?1")
原文地址:https://www.cnblogs.com/mrluve/p/14389182.html