
hibernate
piggerman
爱好,兴趣,好奇,激情,理想
展开
-
今天遇到 Could not determine type for: java.util.List
今天遇到 Could not determine type for: java.util.List用hibernate 映射好好的竟然出现这个问题 以前也遇到过,但不知道怎么给解决了,今天又遇到了,我用到的是用注解标注的映射关系后来仔细砍了,原来注解要么写在字段上,要么写在getter上,不能混合使用,否则会报错原创 2008-03-11 16:52:00 · 8929 阅读 · 0 评论 -
解决a different object with the same identifier value was already associated with the session错误
[转]解决a different object with the same identifier value was already associated with the session错误 这个错误我一共遇到过两次,一直没有找到很好的解决方案,这个错误产生原因相信大家都知道,因为在hibernate中同一个session里面有了两个相同标识但是是不同实体,当这时运行saveOrUp转载 2008-08-21 08:45:00 · 44010 阅读 · 7 评论