-->
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.  [ 2 posts ] 
Author Message
 Post subject: possible to initialize a lazy collection to given size?
PostPosted: Sun Oct 05, 2003 5:40 pm 
Newbie

Joined: Sun Oct 05, 2003 4:29 pm
Posts: 14
Location: Toronto, Canada
I'm trying to figure out if it is possible to initialize a collection to a certain size of elements, instead of all elements.

I have a User class and a News class. The User class contains a Set of News, which is mapped as lazy. I can't figure out without issuing two queries inside my finder method, how to do something like this.

In a somewhat related question...

Assuming that I use JCS (im not at this time) is it possible to use non lazy collections and have the JCS cache provide better performance?

Thanks,
John


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 06, 2003 2:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
* Use a collection filter
* Yes


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.