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: Bulk Deletes of Many to Many Relationships
PostPosted: Wed Sep 26, 2007 6:25 pm 
Newbie

Joined: Wed Sep 26, 2007 6:17 pm
Posts: 1
I have a data model with several many to many relationships where the join table is maintained entirely by Hibernate (i.e., it has not exposed as an object in my object model). Now, I am trying to perform some bulk delete operations using HQL. The problem is that I cannot figure out how to delete the relationships. I don't have an entity to reference in my deletes. Cascades don't work during bulk delete operations. Is there a way to clear out this relationship table using HQL?

Thanks,

Tim Braje


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.