Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2008-08-06


Author LoginPost Reply
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

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