-->
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: Deletes with a parameterized where clause
PostPosted: Wed Oct 20, 2004 8:04 pm 
Newbie

Joined: Thu Sep 30, 2004 9:10 pm
Posts: 3
I have recently come across a situation where I need to perform a delete with a where clause. I would like the where clause to be parameterized to take advantage of prepared statements. Looking through the API for Session I see a delete method, Session.delete(String), but I'm wondering if there is a way to do something like Session.delete(Query)? If so then I could parameterize my where clause as desired.

Any comments would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 21, 2004 10:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Doing a query.list(), Iterate over it and doing delete for every entity is pretty much the same as session.delete() does


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.