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.
http://noon.gilead.free.fr/gilead/index.php?page=tutorial
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:
Did you ever solve your "No source code is available for type net.sf.gilead.pojo.java5.LightEntity; did you forget to inherit a required module"
ReplyDelete??
I'm getting the same thing....any help would be greatly appreciated.
- Bob
robert_light (at) verizon.net
change import of LightEntity with net.sf.gilead.pojo.gwt.LightEntity;
ReplyDelete