Last post Dec 03, 2009 11:26 AM by email@example.com
Nov 28, 2009 07:26 AM|lszk|LINK
From some time I'm interested in Domain Driven Design, so I started my first project with it, which is a simple shop. But now I have a problem in distinguishing between entities and value objects. Look at these two aggregates:
And please tell if I think correct. Everyone table (without Country and Tax) I treat like an entity. I that good? Or maybe all of these should be entities? For each entity I create a new repository and now I don't know what to do.
As I said earlier, this is my first project with DDD, but I would like to build it as best as possible ;)
Do you know a site, where I could see on the real examples what is treated as an entity and what as a value objects? I heard that, entity in one system isn't entity in another, so I need a few examples to see this difference.
Nov 30, 2009 11:39 AM|lszk|LINK
Really no one here using DDD?
Dec 01, 2009 01:59 AM|Song-Tian - MSFT|LINK
Maybe you could get something from here:http://domaindrivendesign.org/
Dec 03, 2009 11:08 AMfirstname.lastname@example.org|LINK
I would say that potentially Comment could be a value object because I am guessing once its created you can never edit it so it makes no sense for it to have an identity column, is this true?
I have written a
book on enterprise patterns in .net and have a section on DDD, there is a project that accompanies the book that is built with DDD in mind here -
http://www.codeplex.com/ProEnt, it may be of interest to you. I also created another simple app via DDD here -
I create a repository for each aggregate root, having a quick look at your UML diagram I would create a CategoryRepository and a ProductRepository, but this is only a guess as I am not sure of the domain you are modelling.
For more info on DDD:
Listen to these PodCasts by Rob Conery, he has a great down to earth way of explaining the concepts behind DDD
Also check out his video on DDD aswell
Download this free PDF on DDD
Join the yahoo DDD news group
If you feel like spending some cash check out these books
I hope that helps, let me know if you need any more info.
Dec 03, 2009 11:26 AMemail@example.com|LINK
This is how I see the