Hello Paul, The SL [1] is a widely used library that focuses on providing server- side features to GWT applications such as publishing of Sping managed beans as RPC services, filters for header control, a streaming protocol and - interesting in your case - a binding to Gilead. The approach is pretty straight forward: You use regular DAOs that read and write Hibernate-managed objects and pass them to your service beans. Gilead and the SL expose that service to the RPC layer and transparently detach/attach objects from and to the Hibernate session. It works in an intuitive way, the most important note would be that lazy, not-yet-loaded references are nulled... but you can control that with fetch strategies.
You can check the source code in the test directory of the ZIP file. [1] http://gwt-widget.sourceforge.net/ On May 3, 8:03 pm, Paul Grenyer <[email protected]> wrote: > Hi All > > I've been having the problem with GWT and hibernate where hibernate is > creating and trying to pass proxy objects back to GWT. GWT obviously > can't serialize the proxies as it doesn't know about them. I'm > currently getting round this by cloning the objects. > > I'd like to use hibernate4gwt, which is meant to handle this problem, > but I'm also using Spring's HibernateTemplate. Does anyone know how I > can plug hibernate2gwt in HibernateTemplate? > > -- > Thanks > Paul > > Paul Grenyer > e: [email protected] > w:http://www.marauder-consulting.co.uk > b: paulgrenyer.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
