• Post Reply 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

achieve the same using one to many bidirectional as for many to one unidirectional

 
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Suppose we have 2 tables: Vendor and Customer such that one vendor can have multiple customers.


One to many unidirectional: If we do save operation on Vendor then customer also gets saved. (provided cascading is used)

many to one unidirectional: If we do a save operation on customer, vendor also gets saved.(provided cascading is used)

one to many bidirectional: If we do save operation on Vendor then customer also gets saved and if we do a save operation on customer, vendor also gets saved.


My confusion is that is the many to one unidirectional case not already covered in one to many bidirectional case. So what we can achieve using many to one unidirectional we can achieve using one to many bidirectional.

thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic