1. 程式人生 > >spring data jpa 錯誤匯總

spring data jpa 錯誤匯總

spring data jpa 錯誤匯總

Not supported for DML operations :

需要添加@Modifying註解

@Modifying

@Query("update Company u set u.name = ?1")

int updateName(String name);


spring data jpa 錯誤匯總