0

I am getting No Datastore Session bound to thread, and configuration does not allow creation of non-transactional one here grails while calling DomainMappingCached() function. Function returns the class object of DomainMapping where as function inner execution is going correct. I am using GORM 5.0. Below is my code snippet:

domainsDel?.each { domainInstance ->
        if (domainInstance.domainMappingCached()) {

        }
Zaid Khan
  • 54
  • 1
  • 6

1 Answers1

0

Resolved with Class.withTransaction{}

Zaid Khan
  • 54
  • 1
  • 6