[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2603) Deprecate the Session.connection() method
Steve Ebersole (JIRA)
noreply at atlassian.com
Tue Sep 25 10:00:57 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28210 ]
Steve Ebersole commented on HHH-2603:
-------------------------------------
The first thing you need to realize is that there are 2 reasons people use Session.getConnection():
1) do JDBC work
2) create "temporary sessions"
The alternative/replacement will be different for each.
As for #1, there will be a method to "perform some work", where work is an interface representing some functionality that needs concise access to the JDBC connection
#2 is still being discussed as to the best approach. The likely approach is consolidation of the openSession methods to take an encapsulation of "creation options".
> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list