• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Related to Entity Relationships.

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all
Could you anybody explain me in detail the numbers denoted on entity diagrams of showing OneToMany and ManyToOne mapping at page no. 244 and at page no. 247 in EJB in Action book.The numbers are like 1 ,0..* ,1..* etc.
Please explain me in detail .I am very confused about these.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Multiplicity is explained page 223. Is there anything you don't understand from this explanation ?
 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thankx
But i want to know what these numbers denote ?

The numbers are like 1 ,0..* ,1..*



Please explain me these with some examples.
[ November 16, 2008: Message edited by: pradeep singh ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"1" means "only one". "*" means "many". So, "0..*" means "zero or any number of". I find figure 7.3 self explanatory. Look at Bid and Bidder. Bid(0..*)<----(1)Bidder. It means that a Bidder can place many Bid, and a Bid is placed by only one Bidder. The relation between Item and Category is Item(0..*)<---->(1..*)Category. It means that an Item belongs to one or more Category, and a Category can hold many Item.

For example:
Category : Sport,Cloth,Television,Game
Item : Football Shirt

The Item "Football Shirt" may belong to Category "Sport" and "Cloth". This Item has two Category. Category "Sport" now has one item. "Cloth" also has one item. "Television" and "Game" still have no Item.
 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankx Christophe Verre
 
Let's go to the waterfront with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic