hibernate
litxuf
这个作者很懒,什么都没留下…
展开
-
hibernate3连接池
1.Hibernate默认连接池"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration><session-factory><property name="connection.driver_class">com.mysql.jdb...2008-09-24 15:35:40 · 94 阅读 · 0 评论 -
Spring+Hibernate+Proxool连接池
在applicationContext.xml同一级目录下新建一个proxoolconfig.xml 内容如下 <?xml version="1.0" encoding="UTF-8"?><something-else-entirely> <proxool> <alias>proxoolPool</alias&am2008-09-24 15:37:07 · 90 阅读 · 0 评论 -
hibernate的批量删除
批量删除虽然在hibernate里也可以,但他却是一个一个删除,在数量大的情况下很影响效率,昨天在网站上看到了个更好的方法,原来hibernate也提供了JDBC接口,实在是太方便了。 把他cope过来了: 批量更新是指在一个事务中更新大批量数据,批量删除是指在一个事务中删除大批量数据。以下程序直接通过Hibernate API批量更新CUSTOMERS表中年龄大于零的所有记录的AGE字段: ...2008-12-30 17:06:09 · 166 阅读 · 0 评论