-->
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: hibernate cache and database side cascade delete
PostPosted: Mon May 12, 2014 5:06 pm 
Newbie

Joined: Mon May 12, 2014 4:55 pm
Posts: 1
We have a database that deals in large amounts of data. Previously we put high volume updates directly in jdbc and small complicated ones inside hibernate. Everything is mapped in hbm files, but we simply haven't been using hibernate for everything.

Now we're working on a large scale delete method and this has brought up an issue. We're trying to figure out whether to let hibernate do the delete or do a database side cascade delete. If we let the database do an internal cascade delete, then the hibernate second level cache won't know the deleted row or it's cascades has been deleted. Seems we'll either get an object not found exception or stale data.

Is there some way to combine cache with database side cascade deletes?

We're using SQL Server.


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.