
Hibernate
NPPPNHHH
Never trust the client
展开
-
hibernate Unable to instantiate default tuplizer异常
碰到过两次这种情况:一种是jar包冲突,看看是否有两个asm包,把asp-2.2.1这个spring自带的jar删除看看异常是否存在 第二种是 hbm.xml文件中的属性和实体类的 属性不对应。检查实体类和hbm.xml的配置,看看是否配错 。原创 2012-01-17 08:57:34 · 1177 阅读 · 0 评论 -
should be mapped with insert="false" update="false"
should be mapped with insert="false" update="false",如下: 可以看到vote_uid出现了两次,把最上面的那个去掉即可,因为两个属性不能对应一行。原创 2012-01-11 09:51:33 · 9284 阅读 · 0 评论 -
ehcache2.5后hibernate多SessionFactory报错的解决
今天在项目中配置多SessionFactory,抛错 Caused by: net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or d转载 2016-11-13 10:07:05 · 468 阅读 · 0 评论