[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603?page=c...
]
Shawn Clowater commented on HHH-2603:
-------------------------------------
Steve, while the work API is fantastic and works for 90% of our cases we are still using
the .connection() method in order to open up a secondary session in order to do stuff like
our audit logging. I don't care about using the raw connection really it is more
about being able to have a 'child' session. There is already somewhat an API in
place for that but you can't actually get 2 sessions of the same entity mode due to
this.
Off the SessionImpl
public Session getSession(EntityMode entityMode) {
if ( this.entityMode == entityMode ) {
return this;
}
Deprecate the Session.connection() method
-----------------------------------------
Key: HHH-2603
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603
Project: Hibernate Core
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