• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity relations

 
Emad El-Agouz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I want 2 know what the arrow in the following relation means:

Foo(0-1)->Bar(0-1)

and what is the difference between that arrow (-> and this arrow (<->

CustomerBean(1) <-> OrderBean(n)

Thank you
 
amol deshpande
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there Emad,

A -> B (unidirectional relationship)
A <-> B (bidirectonal Relationship)

CustomerBean(1) <-> OrderBean(n)

Its a bidirectional relation...
A customer can place many orders.
An order can have only 1 customer.

Amol.
 
Emad El-Agouz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Amol
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!