-->
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: Still have problems with OSCache
PostPosted: Tue Jul 06, 2004 1:44 am 
Beginner
Beginner

Joined: Mon Feb 09, 2004 6:49 am
Posts: 21
Hi

I posted a thread here last week http://forum.hibernate.org/viewtopic.php?t=932268&highlight=, but with no response. I'll try again;

To make my problem short:

I'm working with an object A with a initialized set of B's mapped with cascade all. When deleting an object B, my cache will invalidate the B, BUT it will not update the reference to B from A. The result is that since B can not be found cached, Hibernate will try and find the B object in the database with the id found in A's reference to B. This will of course lead to an ObjectNotFoundException. For more details and log output see http://forum.hibernate.org/viewtopic.php?t=932268&highlight=.. All help is greatly appreciated..

thanx in advance

regards dag


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 8:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
When you delete an object, you must remove it from all associations.


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.