This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes abt updation in many-to-many mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic
Author

abt updation in many-to-many mapping

Niranjan
Greenhorn

Joined: Jul 01, 2006
Posts: 5
hi friends, i am able to perform all the operations on many-to-many using hibernate. But i am facing a problem while updating. After updating the 2 tables hibernate deleting a row from my reference id table(emp_dept)..
how can i resolve it?



Hibernate: update User set uname=? where myId=?
Hibernate: update dept set deptName=?, description=? where deptId=?
Hibernate: delete from emp_dept where deptId=?



adv..thax


Thanx & Regards,<br />--------------------<br />Nirumagic<br /> <br />niranjantalluru@gmail.com
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

"nirumagic"

Please don't post the same question more than once. And please update your display name before posting again. We don't have many rules here, but I'm afraid the Naming policy is not one you can ignore. Users with invalid display names will have their accounts locked out. Thanks.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: abt updation in many-to-many mapping
 
Similar Threads
Problem with all-delete-orphan
Many to Many mapping in hibernate.
how to update data in many-to-many mapping
Hibernate native sql problem
Composite key in hibernate 3