0

// 表单联系服务我正在尝试在单独的线程中执行上传过程 Thread.start { fileHandlerService.saveUploadedFile(allData) }

// now in save uploadFile Method i'm getting lazy exception while i'm trying to fethc the contact from the db 
// bu usging it's email id
Contact.withTransaction {
def isObjectExists=domainClassObj.createCriteria().get() {
eq primaryColumn,fileValue
fetchMode 'groups', FetchMode.EAGER
fetchMode 'playEvents', FetchMode.EAGER
}
}

 //contact domain has many    static hasMany = [groups: Group,playEvents:PlayEvent]
 and i'm getting lazy initialization on  group and playevents while fethcing the contact object 
4

0 回答 0