[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2603) Deprecate the Session.connection() method

Glen K. Peterson (JIRA) noreply at atlassian.com
Thu Aug 23 13:02:57 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27929 ] 

Glen K. Peterson commented on HHH-2603:
---------------------------------------

I recommend that you list the dangers of using Session.connection() in the JavaDocs for that method and update any other documentation accordingly.  The JavaDocs are the first place I would look for that type of information and it's also where I would most likely find it by accident.

I still think it's premature to mark it deprecated.  Deprecating a method means that "you should no longer use it, since it has been superseded and may cease to exist in the future."
Source:
http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/deprecation/deprecation.html

> 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