随笔分类 -  Hibernate框架

Hibernate框架
摘要:1 Session session = sessionFactory.openSession(); 2 Transaction tx = session.beginTransaction(); 3 for ( int i=0; i<100000; i++ ) { 4 Customer customer = new Customer(.....); 5 session.save(customer); 6 if ( i % 20 == 0 ) { //20, same as the JDBC batch size 7 //flush a batch of inserts and releas 阅读全文
posted @ 2013-12-02 11:48 古来征战几人回 阅读(502) 评论(0) 推荐(0)
摘要:2008-06-30 19:00:02,250 WARN [com.mchange.v2.resourcepool.BasicResourcePool] - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@b27de5 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number 阅读全文
posted @ 2012-05-25 09:32 古来征战几人回 阅读(961) 评论(0) 推荐(0)