[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3421) to scroll lazy collection

Adam Wozniak (JIRA) noreply at atlassian.com
Wed Aug 6 18:45:30 EDT 2008


to scroll lazy collection
-------------------------

                 Key: HHH-3421
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3421
             Project: Hibernate3
          Issue Type: New Feature
    Affects Versions: 3.2.6
         Environment: java 5
            Reporter: Adam Wozniak


btw: I wrote about it here: http://forum.hibernate.org/viewtopic.php?t=988409&highlight=

The question is:
Can I (elegantly and in Hibernatish way) scroll lazy collection?

Let's assume that I have a following lazy collection:


@OneToMany(fetch = FetchType.LAZY)
public List<Customer> getCustomers()
{
   return cuctomers;
}


But some entities have a huge number of customers and therefore there is no possibility to loaded them all (no matter if this is LAZY or EAGER).

Can I use scroll mechanism to go through all elements of lazy collection WITHOUT loading them into customers list?

In other words is there a Hibernate feature similar to this PSEUDO-code:

     ScrollableResults scroll = session.createScroll(myLazyCollection).scroll();


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