随笔分类 - 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
阅读全文
摘要: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
阅读全文
浙公网安备 33010602011771号