If you get this exception:
nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query
It may be because you do not have @Transaction annotation in your repository class (interface). I tried adding @Transaction annotation to calling service or calling controller, but it did not solve the exception. If this do not help you, check step-by-step solution described in this stackoverflow thread.
Please find the solution here
ReplyDeletehttps://code.thebur.net/2017/10/13/transactionrequiredexception-and-spring-data/