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