[JPA] TransactionRequiredException: Executing an update/delete query 에러 해결
JPA로 업데이트문을 만들었는데 import shop.janes.apis.web.v1.domain.record.entity.Record import org.springframework.data.jpa.repository.JpaRepository import org.springframework.data.jpa.repository.Modifying import org.springframework.data.jpa.repository.Query interface RecordRepository : JpaRepository { @Modifying @Query("update Record r set r.used = :used where r.id = :id") fun updateUsedById(id: String, us..
Kotlin & JPA
2022. 1. 20. 17:04