2014年1月26日

摘要: http://sourceforge.net/projects/springframework/files/springframework-2/ 阅读全文
posted @ 2014-01-26 17:15 jackvc 阅读(216) 评论(0) 推荐(0) 编辑
摘要: http://www.jboss.org/projects 阅读全文
posted @ 2014-01-26 16:42 jackvc 阅读(102) 评论(0) 推荐(0) 编辑
摘要: http://bl.ocks.org/mbostock/4062045 阅读全文
posted @ 2014-01-26 16:32 jackvc 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 批量插入(Batch inserts)如果要将很多对象持久化,你必须通过经常的调用 flush()以及稍后调用 clear()来控制第一级缓存的大小。Session session = sessionFactory.openSession();Transaction tx = session.beginTransaction();for ( int i=0; i<100000; i++ ) { Customer customer = new Customer(.....); session.save(customer); if ( i % 20 == 0 ) { //20, same a 阅读全文
posted @ 2014-01-26 13:26 jackvc 阅读(396) 评论(0) 推荐(0) 编辑
摘要: public class AuditLogListener implements PostInsertEventListener, PostUpdateEventListener, PostDeleteEventListener { /** 审计日志服务类 */ // 此处不能使用 @Autowired private AuditLogService auditLogService /*** 此处省去n行**/} 阅读全文
posted @ 2014-01-26 11:17 jackvc 阅读(356) 评论(0) 推荐(0) 编辑

导航