Regular |
 |
Joined: Tue Jun 22, 2004 8:01 pm Posts: 106 Location: PowderTown, Utah, USA
|
As per the JavaDoc on net.sf.hibernate.Session:
public Connection connection()
throws HibernateException
Get the JDBC connection. Applications are responsible for calling commit/rollback upon the connection before closing the Session.
Returns:
the JDBC connection in use by the Session
Throws:
HibernateException - if the Session is disconnected
The Session.connection() method returns the Session's connection. It originates from the connection pool, but it is the connection currently in use by the session.
The answer is yes, any updates occuring during Session.flush will use that same connection.
|
|