![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
lgq_0714
轻盈盈的水蓝盈盈的天
展开
-
Hibernate中返回值类型的改变
public Long getallcount() { Long count=new Long(0); String sql="select count(answer.id) from Answer as answer"; Query query=super.getSession().createQuery(sql);原创 2009-05-09 15:54:00 · 963 阅读 · 0 评论 -
hibernate.hbm2ddl.auto配置详解
hibernate.cfg.xml 中hibernate.hbm2ddl.auto配置节点如下: Hibernate Reference Documentation 3.3.1解释如下:Automatically validate or export schema DDL to the database when the SessionFactory is created.With原创 2009-11-16 09:47:00 · 3904 阅读 · 1 评论