<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Discussion on Domain Driven Design: Entities</title>
	<atom:link href="http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/</link>
	<description>Tales from the field...</description>
	<lastBuildDate>Sat, 11 Feb 2012 08:43:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Aarti</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-859</link>
		<dc:creator>Aarti</dc:creator>
		<pubDate>Tue, 23 Aug 2011 10:02:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-859</guid>
		<description>Very nice article on DDD.  Easy to understand for a beginner like me.</description>
		<content:encoded><![CDATA[<p>Very nice article on DDD.  Easy to understand for a beginner like me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-857</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 18 Aug 2011 11:30:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-857</guid>
		<description>The links to pictures are broken, sadly...</description>
		<content:encoded><![CDATA[<p>The links to pictures are broken, sadly&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naser</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-843</link>
		<dc:creator>Naser</dc:creator>
		<pubDate>Mon, 25 Apr 2011 06:21:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-843</guid>
		<description>Good mixture of humor and infomation. It works :)</description>
		<content:encoded><![CDATA[<p>Good mixture of humor and infomation. It works <img src='http://lostechies.com/joeocampo/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aakash</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-26</link>
		<dc:creator>Aakash</dc:creator>
		<pubDate>Tue, 15 Feb 2011 11:45:02 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-26</guid>
		<description>I&#039;m glad that I landed on your post. Now my wallet is filled with some useful and important information. :-) 

Thanks for  your post.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad that I landed on your post. Now my wallet is filled with some useful and important information. <img src='http://lostechies.com/joeocampo/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Thanks for  your post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santhosh vavilala</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-25</link>
		<dc:creator>santhosh vavilala</dc:creator>
		<pubDate>Tue, 02 Feb 2010 08:46:44 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-25</guid>
		<description>Awesome...very good example....</description>
		<content:encoded><![CDATA[<p>Awesome&#8230;very good example&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yeraycaballero</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-24</link>
		<dc:creator>yeraycaballero</dc:creator>
		<pubDate>Wed, 05 Mar 2008 20:20:46 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-24</guid>
		<description>very good sample of Entity concept. I would like to ask you something, what about wallet entity?. How your son identifies your wallet?, what is the id of Wallet class?.</description>
		<content:encoded><![CDATA[<p>very good sample of Entity concept. I would like to ask you something, what about wallet entity?. How your son identifies your wallet?, what is the id of Wallet class?.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-23</link>
		<dc:creator>Lawrence</dc:creator>
		<pubDate>Tue, 24 Apr 2007 00:25:15 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-23</guid>
		<description>The best example of an object that can be an entity or value object based on context is the one given in the book Domain-Driven Design itself in the side bar of the section on Value Objects (page 98 in my edition).   The example given is for an &quot;Address&quot; type.  

For an online vendor&#039;s system, &quot;Address&quot; would be a value object.  More than one UserAccount may have an equivalent Address (a husband, wife, and their children might all have separate accounts, but usually share the same address.)  In this case, Address has no real conceptual identity.   It isn&#039;t important to me as an online vendor to realize that two (or more) Address object instances represent the same physical address.  It doesn&#039;t matter to me if a UserAccount provides a new Address I&#039;ve never seen before, or changes their Address, or modifies their street address to change &#039;ST&#039; to &#039;STREET&#039;.  This is what makes them a value object.

However, if I am writing a system for the electric company, an Address would be an Entity, since it is a unique &quot;endpoint&quot; for which the service can be turned on and off.   You can&#039;t have the service on AND off for the same Address.    Its identity is important; if you create a new Address, that&#039;s also important.   

Anyway, great writeup.
</description>
		<content:encoded><![CDATA[<p>The best example of an object that can be an entity or value object based on context is the one given in the book Domain-Driven Design itself in the side bar of the section on Value Objects (page 98 in my edition).   The example given is for an &#8220;Address&#8221; type.  </p>
<p>For an online vendor&#8217;s system, &#8220;Address&#8221; would be a value object.  More than one UserAccount may have an equivalent Address (a husband, wife, and their children might all have separate accounts, but usually share the same address.)  In this case, Address has no real conceptual identity.   It isn&#8217;t important to me as an online vendor to realize that two (or more) Address object instances represent the same physical address.  It doesn&#8217;t matter to me if a UserAccount provides a new Address I&#8217;ve never seen before, or changes their Address, or modifies their street address to change &#8216;ST&#8217; to &#8216;STREET&#8217;.  This is what makes them a value object.</p>
<p>However, if I am writing a system for the electric company, an Address would be an Entity, since it is a unique &#8220;endpoint&#8221; for which the service can be turned on and off.   You can&#8217;t have the service on AND off for the same Address.    Its identity is important; if you create a new Address, that&#8217;s also important.   </p>
<p>Anyway, great writeup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: agilejoe</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-22</link>
		<dc:creator>agilejoe</dc:creator>
		<pubDate>Sun, 15 Apr 2007 15:56:23 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-22</guid>
		<description>&gt;&gt;You&#039;ve mentioned to me in the past that an object can be an entity or a value object based on context. What does it look like to transition from an  entity to a value object based on context? Or is this even what is meant by that statement?

I kind of alluded to that when I mentioned the US Treasury Department.   To me I don’t care about the identity of the money I just care about the value it servers me.  But in direct contrast and a different context all together the US Treasury care deeply about the identity of the money as it uses the serial number to track against counterfeit bills.  So you see the same artifact, in two entirely different scenarios resulting in one context a value object and in the other context a very valuable entity object.
</description>
		<content:encoded><![CDATA[<p>>>You&#8217;ve mentioned to me in the past that an object can be an entity or a value object based on context. What does it look like to transition from an  entity to a value object based on context? Or is this even what is meant by that statement?</p>
<p>I kind of alluded to that when I mentioned the US Treasury Department.   To me I don’t care about the identity of the money I just care about the value it servers me.  But in direct contrast and a different context all together the US Treasury care deeply about the identity of the money as it uses the serial number to track against counterfeit bills.  So you see the same artifact, in two entirely different scenarios resulting in one context a value object and in the other context a very valuable entity object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nmonta76</title>
		<link>http://lostechies.com/joeocampo/2007/04/15/a-discussion-on-domain-driven-design-entities/#comment-21</link>
		<dc:creator>nmonta76</dc:creator>
		<pubDate>Sun, 15 Apr 2007 09:21:36 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joe_ocampo/archive/2007/04/14/a-discussion-on-domain-driven-design-entities.aspx#comment-21</guid>
		<description>Your posts are definitely not long winded! Let&#039;s see some code though. :)

You&#039;ve mentioned to me in the past that an object can be an entity or a value object based on context. What does it look like to transition from an  entity to a value object based on context? Or is this even what is meant by that statement?

As far as identity, I think you bring up an excellent point on the characteristics of an entity. Afterall, you wouldn&#039;t want your wife handing you back your son&#039;s wallet, which may contain a lot fewer money value objects. The point is that you are able to properly identify that wallet based on some criteria and have the wallet persisted/retrieved properly by the wife repository based on those characteristics deemed important. In this case, wouldn&#039;t you say that those identifying characteristics are made explicit more so by the repository than the entity itself?

Finally, after playing with ActiveRecord for only a short time, I definitely think it would drive you crazy. :) AR extends the entities to be persistence aware and although this is great for small applications, it certainly moves them to behave more  like business objects.</description>
		<content:encoded><![CDATA[<p>Your posts are definitely not long winded! Let&#8217;s see some code though. <img src='http://lostechies.com/joeocampo/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You&#8217;ve mentioned to me in the past that an object can be an entity or a value object based on context. What does it look like to transition from an  entity to a value object based on context? Or is this even what is meant by that statement?</p>
<p>As far as identity, I think you bring up an excellent point on the characteristics of an entity. Afterall, you wouldn&#8217;t want your wife handing you back your son&#8217;s wallet, which may contain a lot fewer money value objects. The point is that you are able to properly identify that wallet based on some criteria and have the wallet persisted/retrieved properly by the wife repository based on those characteristics deemed important. In this case, wouldn&#8217;t you say that those identifying characteristics are made explicit more so by the repository than the entity itself?</p>
<p>Finally, after playing with ActiveRecord for only a short time, I definitely think it would drive you crazy. <img src='http://lostechies.com/joeocampo/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  AR extends the entities to be persistence aware and although this is great for small applications, it certainly moves them to behave more  like business objects.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
