-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Stack overflow problem persists
PostPosted: Mon Nov 03, 2003 1:56 pm 
Pro
Pro

Joined: Mon Sep 08, 2003 4:30 pm
Posts: 203
I've tested and problem #1 still exists.

Problem with the indxes is solved.

--steve p.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 2:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Does SessionImpl look like this:

Code:
   public void initializeNonLazyCollections() throws HibernateException {
      if (loadCounter==0) {
         log.debug( "initializing non-lazy collections");
         //do this work only at the very highest level of the load
         loadCounter++; //don't let this method be called recursively
         try {
            int size;
            while( ( size=nonlazyCollections.size() ) > 0 ) {
               //note that each iteration of the loop may add new elements
               ( (PersistentCollection) nonlazyCollections.remove(size-1) ).forceLoad();
            }
         }
         finally {
            loadCounter--;
         }
      }
   }


Remember that read-only CVS is a few hours behind. Try updating again, till' the code looks like that!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 2:22 pm 
Pro
Pro

Joined: Mon Sep 08, 2003 4:30 pm
Posts: 203
Yep, it fixed the problem!

Are we safe with the lazy collections as well?

tia,

--steve p.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 2:32 pm 
Pro
Pro

Joined: Mon Sep 08, 2003 4:30 pm
Posts: 203
dia100 wrote:
Yep, it fixed the problem!

Are we safe with the lazy collections as well?

tia,

--steve p.


I guess it's kind of stupid to ask this one, 'cause the lazy collections are not loaded all at a time, right?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.