首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Access >

hibernate 异常 解决办法illegal access to loading collection

2012-10-14 
hibernate 错误 解决方法illegal access to loading collection最开始出现No row with the given identifi

hibernate 错误 解决方法illegal access to loading collection
最开始出现No row with the given identifier exists错误,后来发现是手动清空表时忘记删除关联表了
然后出现这个错误illegal access to loading collection,
Google了半天,后来小小一改就解决了,也不知为什么,呵呵
将pojo中的private Set student = new HashSet(0);
改为private Set student = new HashSet();就行了,不知为什么,呵呵
希望高人路过,哈哈

热点排行