Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Multiplicity = Many !!!

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone tell me what is multiplicity Many ?
Is it (0,n) or (1,n) ?
In relation to the exam questions, how should you consider the following :
Custormer (1) <----> OrderBean (n)
What does the (n0 stand for : (0,n) or (1,n) ?
Thanks
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't have a relationship from 0 to n. It can be 1->1, 1->n, m->n (plus bidirectional).
[ April 26, 2004: Message edited by: Nathaniel Stoddard ]
 
raphael Bereh
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry Nathaniel ,
Is that in EJB or UML ?
For instance a Java Programmer has 0 or n Sun Certifications !? Are you saying that if I put that in EJBs ProgrammerBean and CertificationBean, my multiplicity is wrong ?
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Raphael,
Nathenial is talking about EJB.
Entity Relationship cannot be 0 to 1 or 0 to many.
It is a referential integerity (Primary key , Foreign key relationship)
Where as in UML, It is common among Objects to have 0 to 1 etc.
 
raphael Bereh
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Humm,
Well, you know how when dealing with multiplicity, you can on each side of the relation(ship) specify the Mininum and Maximun for the multiplucity !?
e.g : Programmer (0,n) <----> (0,n)Certification,so are you saying that in EJB, we only use the maximun for multiplicity ?, So the abose example would be : ProgrammerBean(n)<---->(n)CertificationBean - Many-to-Many - ?
 
this llama doesn't want your drama, he just wants this tiny ad for his mama
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic