------------------------3月25日-------------------------------------
老是报这么个异常:
com.google.gwt.user.client.rpc.SerializationException: Type 'org.hibernate.collection.PersistentBag' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.
最后再这里找到了答案:
http://code.google.com/intl/zh-CN/webtoolkit/articles/using_gwt_with_hibernate.html
----------------------3月26日--------------------------------------
决定用Gilead来实现hibernate和gwt的集成了,又遇到异常:
No source code is available for type net.sf.gilead.pojo.java5.LightEntity
可能原因是domain类在extends LightEntity时,导包导错了,导成 net.sf.gilead.pojo.gwt.LightEntity 可能就好了。上帝啊。
老是报这么个异常:
com.google.gwt.user.client.rpc.SerializationException: Type 'org.hibernate.collection.PersistentBag' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.
最后再这里找到了答案:
http://code.google.com/intl/zh-CN/webtoolkit/articles/using_gwt_with_hibernate.html
----------------------3月26日--------------------------------------
决定用Gilead来实现hibernate和gwt的集成了,又遇到异常:
No source code is available for type net.sf.gilead.pojo.java5.LightEntity
可能原因是domain类在extends LightEntity时,导包导错了,导成 net.sf.gilead.pojo.gwt.LightEntity 可能就好了。上帝啊。
本文记录了在尝试集成GWT与Hibernate过程中遇到的问题及解决方案。主要问题是序列化异常和使用Gilead集成时出现的类型错误。通过调整配置和修正类继承关系解决了这些问题。
696

被折叠的 条评论
为什么被折叠?



