Grails

Extract correct class from hibernate object wrapped with javassist

Hi, Some times when we access domain objects of collections in one to many or many to many relationships, we get Hibernate class wrapped with javassist, basically hibernate wraps all loaded objects with javassist after loading(lazy loading case) them . So if  we call  class.name on the members of collections in one to many or...

by Sachin Verma
Tag: hibernate proxy objects
21-Sep-2012

Grails

GORM Batch Deletes Made Easy with Load Method

We are using the grails asynchronous mail plugin in our project and noticed that the sent mails never gets deleted from the database. This was an issue because we were sending out a lot of mails and all of them had PDF attachments of about 500 KB to 1 MB each. A sure recipe for disaster because our DB was growing exponentially. To take...

by Vivek Krishna
Tag: hibernate proxy objects
29-Sep-2010