http://blog.csdn.net/wfm0105/article/details/6605439 http://www.redsaga.com/hibernate-ref/3.2/html/querysql.html
2011-10-21 17:54 · Hibernate
官方很简单的HibernateUtil.java,可以针对自己的需求改进。 package org.bbjava.funny.test; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); private static SessionFactory buildSessionFactor…
2011-09-20 10:51 · Hibernate
Hibernate的插入操作时,entity里有包装类类型属型,如果该类型属性没有被初始化(值为null),hibernate 不会取消对该属性的插入。hibernate认为那是你赋值为null,给你照常插入。 (考虑用原生类型) 注:hibernate 3.2.4 sp1
2011-06-29 17:30 · Hibernate