Not supported for DML operations :
需要添加@Modifying註解
@Modifying
@Query("update Company u set u.name = ?1")
int updateName(String name);
Not supported for DML operations :
需要添加@Modifying註解
@Modifying
@Query("update Company u set u.name = ?1")
int updateName(String name);