![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 66
hanshuai123
这个作者很懒,什么都没留下…
展开
-
should be mapped with insert="false" update="false"
今天整三大框架在建立多对一关系映射时,遇到了这个问题,should be mapped with insert="false" update="false",如下: 可以看到vote_uid出现了两次,把最上面的那个去掉即可,因为两个属性不能对应一行。哈哈,受益咯 ...2009-12-21 16:44:46 · 93 阅读 · 0 评论 -
hibernate常见包异常
hibernate常见包异常 2. //如果不用,启动时不会出错,但使用Dwr时,会抛出异常:java.lang.NoClassDefFoundError: antlr/ANTLRException 3. antlr-2.7.2.jar 4. 5. //如果不用此包,在启动时会抛出: nested exception is java.lang.NoClassDe...原创 2009-12-23 18:52:07 · 104 阅读 · 0 评论