
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 · 982 阅读 · 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 · 4071 阅读 · 1 评论