Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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 - ?
 
In the renaissance, how big were the dinosaurs? Did you have tiny ads?
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic