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.  [ 3 posts ] 
Author Message
 Post subject: Question about Syscache
PostPosted: Tue Dec 19, 2006 9:47 pm 
Newbie

Joined: Mon Nov 20, 2006 1:53 am
Posts: 14
Hi All

I am very new to nHibernate so please forgive me if this is a dumb question.

Does the syscache only work for loading child objects?

The only way I can see that parent objects are loaded is through a query, which must use the query cache. Is there a different way to load parent objects which will make use of the syscache?

Have I got this completely confused and wrong?

Regards

Clare Stinton


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 3:34 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
The second-level cache is used to load objects by id, so if you use Get or Load to retrieve the parent object, it will look in the second-level cache first.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 6:09 pm 
Newbie

Joined: Mon Nov 20, 2006 1:53 am
Posts: 14
So is it fair to say then if I am loading a list of 'parent' objects that a query is required?

Clare


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