Open verglor opened 5 years ago
Workaround is to configure hibernate.allow_update_outside_transaction = true
I think this is the wrong solution. After grails 3.1 services aren't transactional by default. The AsynchronousMailProcessService isn't marked as @Transactional. The correct solution is to mark the service as transactional. Doing global hibernate workarounds is bad because plugins shouldn't assume a particular global setup.
@xpusostomos you are right, it's just a quick workaround. That's why this issue is still open and unresolved.
It seems there are missing transaction declarations - see GORM manual section 1.2.5: