-->
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: delete record in link table
PostPosted: Tue Oct 27, 2009 11:53 am 
Newbie

Joined: Mon Oct 26, 2009 9:54 pm
Posts: 1
Hi there,
I am getting a trouble with hibernate mapping: I have 3 classes Doctor,Location and Event. In Doctor, I have a set of Location (many-to-many) relation,lazy=true. In Location, I have a set of Doctor(many-to-many) relation, lazy=true.Doctor and Location connect through the table DoctorLocation. In Event, I have a Doctor and a Location. When I try to update an Event, it also runs the queries: delete * from DoctorLocation where doctorid=?, delete * from DoctorLocation where locationid=?.
Is there any way I can avoid that deletion?
Thanks in advance.


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.