-->
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: How to force use of @SQLDelete instead of @SQLDeleteAll?
PostPosted: Thu Oct 11, 2007 10:16 am 
Beginner
Beginner

Joined: Mon Aug 27, 2007 8:10 am
Posts: 37
Hibernate version: 3.2.5.ga

There is a bug with @SQLDeleteAll, which is claimed as fixed in 3.3.0.ga.
Unfortunatelly our application is in production already and we can not upgrade to the newer hibernate easily.

Indeed, the problem we experience appears only when deleting last item in the collection, when there is at least one item left Hibernate calls our custom @SQLDelete and it works well for us.

Is there any way to force Hibernate to not "optimize" deletion of all items from collections and always delete row by row with SQLDelete?


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.