Monday, May 11, 2009

Hibernate Serialization Policy or its Class object could not be loaded javassist

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:

 

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d4cc869ce6372d7f/5022d6980de27167?hide_quotes=no

 

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:

 

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation

2 comments:

  1. 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"

    ??

    I'm getting the same thing....any help would be greatly appreciated.

    - Bob
    robert_light (at) verizon.net

    ReplyDelete
  2. change import of LightEntity with net.sf.gilead.pojo.gwt.LightEntity;

    ReplyDelete

Followers