-->
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: many-to-many association
PostPosted: Wed Mar 21, 2007 8:38 am 
Newbie

Joined: Tue Nov 14, 2006 9:05 am
Posts: 8
Is there a possibility to remove rows in a many-to-many table created in hibernate?
I've a Member table and a Publication table and the belonging link-table (member-publication table)

So i've something like that in Member_publication table:
Member_Id Publication_Id
1 ----> 2
1 ----> 3
2 ----> 2
That means member with id 1 has worked in publication 2 and 3 and member with id
2 only in publication 2.
Can i make a query to delete rows with publication_id 2 ? so that the result is:
Member_Id Publication_Id
1 ----> 3

thanks


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.