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.  [ 1 post ] 
Author Message
 Post subject: on-delete="cascade" and collection/entity caches
PostPosted: Thu Jan 04, 2007 9:57 pm 
Newbie

Joined: Wed Aug 27, 2003 7:31 am
Posts: 9
Location: Russia, Izhevsk
Does on-delete="cascade" work with entity and collection caches?

For example, if we have object 'A', 'B' and 'C'. Objects 'B' and 'C' are members of one-to-many collection in 'A' with cascaded delete.

Now, suppose we have object 'C' in second-level cache and issue 'delete' statement on object 'A'. Database will delete objects 'B' and 'C'. But as far as I understand, Hibernate has no way to know about it so we might get inconsistent data if user tries to load object 'C' and hits the cache. Am I right?

_________________
Sapienti sat!


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

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.