您如何称呼生命周期管理课程?
作为一个例子,您可以考虑一个休眠事务和一个为线程启动一个事务、提交和回滚的类,或者一个获取会话、关闭它并刷新它的类(两个示例都考虑了线程本地模式)。
As an example you can think of a hibernate transaction and a class which begins one for a thread, commits and rollbacks, Or a class which gets a session, closes it and flushes it (both examples are with the threadlocal pattern in mind).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
工作单元?
请参阅http:// /ayende.com/blog/archive/2007/06/08/rhino-commons-repositorylttgt-and-unit-of-work.aspx 。
UnitOfWork?
See http://ayende.com/blog/archive/2007/06/08/rhino-commons-repositorylttgt-and-unit-of-work.aspx .