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

Hontvári József (JIRA) noreply at atlassian.com
Fri Oct 26 09:46:39 EDT 2007


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

Hontvári József commented on HHH-2603:
--------------------------------------

Yes, deprecation doesn't mean that there is an alternative API, but that is not a problem here. There are two kind of deprecation:
1) something was wrong and cannot be fixed therefore no alternative method is provided. Like Thread.stop. In the deprecation comment Sun provides a very detailed problem description so you can understand the consequences and risks of the (continued) usage of the method.
2) something is wrong or not optimal and it WAS replaced by something better. Like getenv, Sun recommended the system properties in the deprecation comment.

I believe in this case the deprecation was either used for an inapproprate purpose (roadmap?) and/or the deprecation comment is missing. 

I really appreciate Hibernate developers, but I think in this case you don't understand that during maintenance deprecated class/method usage requires attention, it may indicate real problems and it means tasks to do, and you treated this problem a bit too lightly. 

> 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