
hibernate
asialee029
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hibernate一对多映射的inverse属性的智能性困惑
[color=red][size=large] 我们发现sql语句的个数是相同的,功能也差不多,但发现上面在两个update语句里面,又把name设置了一下,但底下的sql语句则显示的比较“智能”一些,不知道为什么,恳请高手解释。 [/size] [/color] [/size] [code="java"] public class Address { privat...2009-03-20 14:46:50 · 110 阅读 · 0 评论 -
hibernate一些概念的理解(未完待续)
[size=large]hibernate.hbm2ddl.auto = create. Usually you only leave it turned on in continuous unit testing, but another run of hbm2ddl would drop everything you have stored - the create configura...2009-03-20 17:28:58 · 103 阅读 · 0 评论 -
Hibernate 排错
[code="java"] org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.pure.domain.Member.se...2009-04-08 13:53:55 · 154 阅读 · 0 评论 -
关于hibernate中update使用别名的问题
今天写了一个程序: [code="java"] getHibernateTemplate().execute(new HibernateCallback() { @Override public Object doInHibernate(Session session) throws HibernateException, SQLException { Q...2009-04-10 15:01:16 · 299 阅读 · 0 评论 -
hibernate查看真实执行的sql的方法
[size=large][color=darkblue] 和同事一块定位一个问题的时候,打印出来的sql是对的,但是执行的不对,由于使用的是namedParameter,所有不是真实执行的sql,最终调试发现,在AbstractBatcher类里面 在真正的执行sql语句:[/color][/size] [code="java"] public ResultSet getRes...原创 2012-07-06 10:58:39 · 1857 阅读 · 0 评论 -
【转】解决Hibernate 3不支持 "&" 运算的SQL语句
转:[url]http://blog.csdn.net/explorering/article/details/1196397[/url] 按位与运算(&)在许多数据库中都是支持的,遗憾的是,Hibernate 3在HQL中不支持&运算,如果你写了如下的HQL: where a.id & :mask = :target 则Hibernate报错:exception: unexpe...原创 2012-03-31 13:34:58 · 142 阅读 · 0 评论