[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2820) Can not set HOLD_CURSORS_OVER_COMMIT when creating ScrollableResults

Vladimir Kralik (JIRA) noreply at atlassian.com
Sun Oct 26 11:05:05 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Kralik updated HHH-2820:
---------------------------------

    Attachment: hibernate-3.2.6_p3.patch

I created simple patch for hibernate 3.2.6 which adds tree new types of ScrollMode ( FORWARD_ONLY_WITH_HOLD, SCROLL_INSENSITIVE_WITH_HOLD, SCROLL_SENSITIVE_WITH_HOLD ).

But this patch doesn't solve my problem, because WebShere said : 
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rdat_cursorhold.html
"""
When a transaction is rolled back, all result sets are closed even if you have set cursor holdability. :-(
"""

> Can not set HOLD_CURSORS_OVER_COMMIT when creating ScrollableResults
> --------------------------------------------------------------------
>
>                 Key: HHH-2820
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2820
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.5
>         Environment: N/A
>            Reporter: steven
>         Attachments: hibernate-3.2.6_p3.patch
>
>
> Currently, I can not set HOLD_CURSORS_OVER_COMMIT when creating ScrollableResults. It seams that the method in Query:
> public ScrollableResults scroll(ScrollMode scrollMode) throws HibernateException;
> should be added with the second argument: ResultSet holdability.

-- 
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