gwt與hibernate集成時遇到的問題

------------------------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 可能就好了。上帝啊。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章