• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Multiplicity = Many !!!

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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 - ?
 
Slime does not pay. Always keep your tiny ad dry.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic