-->
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: How intelligent is the second level cache
PostPosted: Thu Jun 07, 2007 2:08 pm 
Beginner
Beginner

Joined: Thu Feb 08, 2007 10:40 am
Posts: 46
Hi,

I am using the latest hibernate version and have EHCache configured as second level cache.

I have an object class Person that has a colleciton of Pet objects.

Now say I have a person instance "John" that has a pet "wauwau". If I save the object "John" to the database, the whole object tree is put into the second level cache. This includes the "wauwau" object.

Now, what happens, if I modify some attributes of the "wauwau" object and save that object to the database. Will the object in the collection be updated?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 5:58 pm 
Beginner
Beginner

Joined: Mon May 21, 2007 5:22 pm
Posts: 27
Location: Salt Lake City
I hope it'll be updated, if you are using the nonrestrict-read-write caching usage property !

_________________
Try 'N' Enjoy !!
Rahul

If helpful do rating ....


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 6:28 pm 
Beginner
Beginner

Joined: Thu Feb 08, 2007 10:40 am
Posts: 46
So far, I have been using the "read-write" strategy. Should I switch to "nonrestrict-read-write"?


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.