[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603?page=c...
]
M Stewart commented on HHH-2603:
--------------------------------
How is this for an alternative (assuming you have access to a Configuration object):
Connection conn = configuration.buildSettings().getConnectionProvider().getConnection();
This seems to provide the behavior that I was looking for, namely access to a JDBC
connection connected to the same database. No need for it to be related to a session.
Does this violate some aspect of the Hibernate design?
Deprecate the Session.connection() method
-----------------------------------------
Key: HHH-2603
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603
Project: Hibernate3
Issue Type: Deprecation
Components: core
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: 3.2.4
Deprecate the Session.connection() method, in favor of a "JDBC work" API.
Schedule for removal in 4.0
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira