liuqiang 2011-05-16
http://blog.sina.com.cn/s/blog_54829a240100glku.html
Transaction tx=session.beginTransaction(); //使用Hibernate事务处理 边界Connection conn=session.connection(); PrepareStatement stmt=conn.prepareStatement(“insert into T_STUDENT(name) values(?)”); for(int j=0;j++;j<200)...{ for(int i=0;i++;j<50) ...{ stmt.setString(1,”feifei”); } } stmt.executeUpdate(); tx.commit(); //使用 Hibernate事务处理边界 .........