Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cade/Shiel part 2 worked example -bid object multiplicity confusion

 
chris J Smith
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I'm a newbie so go easy.
I've been looking through the part 2 worked example in the Cade book and I'm unsure as to why the multiplicity of the Bid - Bidder association is different in the domain model on page 169 and the class diagram on page 172. In the domain model the relationship is that a bid can have one bidder but a bidder can have 0 to many bids whereas in the class diagram a Bid class is associated with 0 to many Bidder classes and the multiplicity from Bidder to Bid has gone. Is this a definite change or just a printing error? I thought it was a no no to change the given domain model like this? To me the relationship in the domain model makes sense so the change is confusing.

I'd be interested to know your thoughts.

Chris
 
kumar naresh
Ranch Hand
Posts: 120
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Smith,

I think its a print mistake, relationship has to follow Bid 0..n ---- 1 Bidder same thing, in the image 0..n and 1 got closer and 1 got mixed in the line.

Kumar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic