Problem: When you are using JPA and returns next error:
jakarta.persistence.TransactionRequiredException: Executing an update/delete query at org.hibernate.internal.AbstractSharedSessionContract.checkTransactionNeededForUpdateOperation
Solution: Just add @Transactional at class level of the repository that is failing.
Source:
For more interesting tutorials & guides just check them HERE.