Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Factory Home Domain Model Problem

 
William Green
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I am struggling on the Factory Home assignment. I still get confuse on the domain model. The relationship between CompletedDesign and Product is many to many.

How can one product be associated with multiple CompletedDesign? Does anyone know what is it imply for?

Thanks!
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy greenhorn!

We always try and tread lightly when talking about assignments to avoid the appearance of impropriety with regards to the integrity of the exam. Plus, I'm not familiar with Factory Homes, so I'm not sure what Product and CompletedDesign are? But is the problem with the many-to-many scenario? Certainly there is nothing unusual about a many-to-many relationship. Do you have something that you could compare it to so we can generate a bit more discussion?

-Cameron McKenzie
 
Ashu Sharma
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also have the same confusion.

Let me put it in a generic scenario.

A person can design a designer car.He can use various components and can make various version of product(car).
When he is done he can finalize a design by choosing one of the designed car out of so many that he has designed.

How can this relationship can be represented?

I think it should be

Finalcardesign [1] ------[1..*] desginedcars


Any thoughts about probable scenario if the representation is as following

Finalcardesign [0..*] ------[1..*] desginedcars


Thanks
Ashu


 
Ashu Sharma
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will answer my question...

" Finalcardesign [0..*] ------[1..*] desginedcars "


This scenario can occur if i make many final designs but i may not have purchased any of them yet.
Once i decide that i am ready to purchase one of the final design the state of that design will be "Purchased".


Thanks
Ashu
 
emanuel petre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless your use case doesn't specify that your designedcar SHOULD be assigned to a specific finalcardesign. If you build your car, store it in some kind of cache so that you can assign it later to more than one finalcardesign, your scenario it's ok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic