Hibernate会话连接关系 [英] Hibernate Session Connection Relationship
本文介绍了Hibernate会话连接关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于只有一个数据库的单个休眠会话,将保持多少连接?
How many connection will hold for a single hibernate session where there is only one DB?
推荐答案
在给定时间给定会话将只保存一个连接
,您可以使用 connect ()方法。
At a given time given session will only hold one connection which you can access with the connect() method.
使用的连接可以通过使用重新连接()方法。
The connection used can be changed though using the reconnect() method.
这篇关于Hibernate会话连接关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文