![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HIbernate
java_mail_test
这个作者很懒,什么都没留下…
展开
-
current_session_context_class的意思
此设置的作用如下: What does sessionFactory.getCurrentSession() do? First, you can call it as many times and anywhere you like, once you get hold of your SessionFactory (easy thanks to HibernateUtil). The ...原创 2010-01-06 08:18:42 · 74 阅读 · 0 评论 -
hibernate 配置c3p0
<!-- c3p0 configuration --> <property name="hibernate.connection.provider_class"> org.hibernate.connection.C3P0ConnectionProvider </property> ...原创 2010-01-06 09:04:33 · 76 阅读 · 0 评论 -
hibernate基本方法
load(Class cls , Serializable pk)使用延迟加载来查询记录,不会立即产生sql语句。当实际使用属性的时候才会去查询。如果查询一个不存在的主键,在使用的时候会抛出org.hibernate.ObjectNotFoundException,不使用的话不会抛出这个异常。 get(Class cls , Serializable pk)不使用延迟加载查询记录,立即产生sql...原创 2010-01-06 11:49:47 · 94 阅读 · 0 评论