[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2820) Can not set HOLD_CURSORS_OVER_COMMIT when creating ScrollableResults
jose (JIRA)
noreply at atlassian.com
Mon Aug 18 13:11:38 EDT 2008
[ 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
More information about the hibernate-issues
mailing list