0 作为一个例子,您可以考虑一个hibernate事务和一个为线程开始,提交和回滚的类,或者一个获取会话的类,关闭它并刷新它(两个示例都考虑到threadlocal模式) 。你会怎样称呼生命周期管理课程? 来源 2010-09-10 Ittai
1 UnitOfWork? 请参阅http://ayende.com/blog/archive/2007/06/08/rhino-commons-repositorylttgt-and-unit-of-work.aspx。 来源 2010-09-10 18:04:10 +0 +1一个经典的福勒PoEAA模式,我非常喜欢。 http://martinfowler.com/eaaCatalog/unitOfWork.html – 2010-09-10 18:07:10
+1一个经典的福勒PoEAA模式,我非常喜欢。 http://martinfowler.com/eaaCatalog/unitOfWork.html – 2010-09-10 18:07:10