-->
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: Hibernate Session delete generates an update and delete
PostPosted: Mon Mar 13, 2006 6:29 pm 
Newbie

Joined: Mon Mar 13, 2006 3:46 pm
Posts: 1
Hibernate version: 3.0

I am using optimistic concurrency with version control using timestamp with oracle 9i.

When I delete a entity, hibernate generates first an update statement updating the timestamp before generating the delete statement.

So basically every delete statement is accompanied by an update statment which is increasing then number of calls to the database.

Can anybody has an idea of why this is happening? Is there a way to force hibernate to issue only one delete statement.

Thanks
Spr


Top
 Profile  
 
 Post subject: More information
PostPosted: Mon Mar 13, 2006 6:50 pm 
Beginner
Beginner

Joined: Mon Mar 14, 2005 6:07 pm
Posts: 36
Could you please post the statements the Hibernate generates?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.