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