Change
<source path="com.mySampleApplication.client"/>
to
<source path="client"/>
-- <source path="com.mySampleApplication.client"/>
to
<source path="client"/>
Then please google for some GWT + Hibernate tutorials as your code also has some other flaws. First you wan to share a hibernate entity which is not that easy because hibernate rewrites your entity class which causes GWT to throw serialization exceptions and second if you use lazy loading then you can not close the hibernate session before GWT has serialized the entity. While serializing the lazy relationships will be fetched but if you have closed the session before you will get Hibernate exceptions. You should follow the OpenSessionInView Pattern to solve this.
-- J.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment