
hibernate
snn1410
这个作者很懒,什么都没留下…
展开
-
hibernate -- 分页模糊查询中setParameter 和setParameterList
在分页模糊查询中碰到setParameter 和setParameterList这两个方法 setParameter 以前就只会用setParameter(int arg,String str),我用到了from table A where 1=1 and ... like ? 还可以用另外一种方法: setParameter(String arg0, Object arg1) 但是原创 2013-05-03 11:11:16 · 22073 阅读 · 0 评论 -
identifier of an instance of .. altered to null ---- hibernate exception
identifier of an instance of .. altered to null 是做Hibernate,对一条数据进行复制(新增数据)时遇到的问题 原因: 在SSH框架中,我们常常把事务放在业务逻辑层(Manager),所有业务逻辑完成后才能commit事务,这时候,如果我们从数据库load/get一个对象出来,虽然对它写update方法,但是在提交事务时候,hibernat原创 2013-06-08 11:15:37 · 8123 阅读 · 0 评论