Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cardinality that doesnt make sense

 
sivan jai
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Dont want to give details of my actual assignment, so a fictitious one.
The domain model has a many to many relationship between a customer and a credit card.
This doesnt make sense. But the general guideline is to always follow the relationships given in the assignment.
what would you do in such a case?

thanks all in advance
 
Teja Saab
Rancher
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sivan jai wrote:Hi All,

Dont want to give details of my actual assignment, so a fictitious one.
The domain model has a many to many relationship between a customer and a credit card.
This doesnt make sense. But the general guideline is to always follow the relationships given in the assignment.
what would you do in such a case?

thanks all in advance


I guess you can have a many-to-many relationship between a customer and a credit card. Obviously a customer can have many credit cards, but a credit card can also belong to many customers (for eg. husband and wife). Many banks issue what are referred to as "Add on cards", which have the exact same credit card number, but are issued to a spouse for use separately. So I guess you could make the case that a many to many relationship can exist between a customer and a credit card. In any case, I guess it is important to document your assumptions, so that your architectural diagrams can be looked at in the context of the assumptions made.

 
sivan jai
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes after I posted it, I realised I picked the wrong example. Like I said that wasnt the exact classes in my case. Anyway I will take whatever the assignment says and dont act too smart. That is the safer approach I guess.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic