jump to navigation

BlazeDS Hibernate Lazy loading problem solved October 8, 2010

Posted by maxmil in : BlazeDS,Java , 2 comments

I finally got around to working on a solution to the lazy loading problem that exists when using hibernate with BlazeDS.

I think that the solution is a pretty clean one. It consists in an annotation that you put on methods returning results to BlazeDS.

The annotation configures what part of the object graph is excluded from serialization.

I was going to use dpHibernate or Gilead but didn’t really need all the advanced features of initializing associations from flex.

This solution is a light and easy one.

The code and a jar are available on GitHub