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()) {

        }
1

There are 1 answers

0
Zaid Khan On

Resolved with Class.withTransaction{}