Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2008-08-18

Replies: Find Java Web Hosting

Author LoginPost Reply

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

jose commented on HHH-2820:
---------------------------

If try to create a "Holdable" connection fails...

Transaction tx = ses.beginTransaction();
ses.connection().setHoldability(ResultSet.HOLD_CURSORS_OVER_COMMIT);
....
ScrollableResults scroll = namedQuery.scroll(ScrollMode.FORWARD_ONLY);
...
tx.commit();

scroll.next() -> fail,   Why ResultSet is closed (by Hibernate)?



> Can not set HOLD_CURSORS_OVER_COMMIT when creating ScrollableResults
> --------------------------------------------------------------------
>
>           Key: HHH-2820
>           URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2820
>         Project: Hibernate3
>       Issue Type: Improvement
>       Components: core
>   Affects Versions: 3.2.5
>      Environment: N/A
>        Reporter: steven
>
> 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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.