Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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

Domain Model correction

 
Sergio Figueras
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

If all the text mentions your domain model entity as a single unit (always in singular), and what makes sense is to be as a single unit, but in your domain model diagram it's represented as a multiple notation (**), what would you do? Correct the domain model diagram or just get ahead with this relationship making no sense?

Best,

Sergio.
 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't really understand why you think the given domain model is wrong.

But take note that a multiple (*) relationship is really mean 0 to M. Also you need to know which side is the owner. In below example, A is the owner.

1 A does M B
0 A does M B
M A does M B

Do saying the above make sense?
 
Sergio Figueras
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:Don't really understand why you think the given domain model is wrong.

But take note that a multiple (*) relationship is really mean 0 to M. Also you need to know which side is the owner. In below example, A is the owner.

1 A does M B
0 A does M B
M A does M B

Do saying the above make sense?


I think that's wrong because in all the text it mentions only one unit, in singular. For example, the domain model says that you need to have N eggs in a basket, but all the text says that it should have only an egg in a basket.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic