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

Ana Carolina (JIRA) noreply at atlassian.com
Wed Aug 5 13:52:13 EDT 2009


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

Ana Carolina  commented on HHH-2603:
------------------------------------

Hellow,

I need to call an oracle stored procedure which does not return  a resultset or cursor, but it return a NUMBER.
According to Hibernate documentation "they are not usable with Hibernate. If you still want to use these procedures you have to execute them via session.connection()."
Problem is that session.connection() generates exception:
java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader 

Do I have any alternative?

Thanks in advanced.

> 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