[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2603) Deprecate the Session.connection() method
Shawn Clowater (JIRA)
noreply at atlassian.com
Fri Dec 19 11:40:39 EST 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31991#action_31991 ]
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list