Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

abt updation in many-to-many mapping

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
"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.
 
    Bookmark Topic Watch Topic
  • New Topic