Here’s a good link that addresses the problem of passing domain model classes with one to many or many to many relationships between your data layer implemented in Hibernate, and the GWT Google Web Toolkit UI:
So, it looks like the best way to do this is to simply use hibernate4gwt, which has been renamed to Gilead over on sourceforge.net.
Apparrently it helps to serialize and deserialize your objects, and it works with other serialization technologies, not just Google Web Toolkit.
public class User extends LightEntity implements Serializable
Ugh…Now I’m getting the following errors:
No source code is available for type net.sf.gilead.pojo.java5.LightEntity; did you forget to inherit a required module?
I guess I better not define my model classes on the client side of my GWT app?
Some neat GWT stuff: