---
title: "gwt与hibernate集成时遇到的问题"
author: "lost_alien"
date: "2010-03-25T16:38:11Z"
tags: []
categories: ["编程语言"]
slug: "gwt-hibernate"
draft: false
lastmod: "2010-03-26T17:04:56Z"
id: 624864
url: "https://lost-alien.iteye.com/blog/624864"
---

------------------------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 可能就好了。上帝啊。