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.
|