-->
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: session.delete in :aList
PostPosted: Thu Nov 13, 2003 8:36 pm 
Newbie

Joined: Wed Oct 22, 2003 3:05 am
Posts: 9
Gavin,

i couldn't find a way to do session.delete for a list of primarykeys.

i wanted to say "delete from mytable where pk in (:mylist)"

i can do in queries with criteria,using Expression.in, however since session.delete requires a select query string, i couldn't fit my criteria into that.

are there any plans to implement session.delete for a collection?

i had to loop for now, but this is not acceptable, because i could be deleting hundreds at a time.

if i missed something , please let me know. maybe there is already a way to do this.

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 13, 2003 8:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No. We have discussed mass deletes a number of times, search the mailing list and forum archives. It turns out that implementing mass deletes in ORM is signifantly more difficult than it sounds. Its difficult (impossible?) to guarantee some of our semantics.


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.