Results 1 to 5 of 5
- 06-08-2011, 07:49 PM #1
Member
- Join Date
- May 2011
- Posts
- 5
- Rep Power
- 0
- 06-08-2011, 08:25 PM #2
Could you provide us with some context? Where are you reading these?
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 06-08-2011, 11:13 PM #3
Member
- Join Date
- May 2011
- Posts
- 5
- Rep Power
- 0
continuation to the question
I was under the assumption that "Entity" and "Value Object" are same. But they are not.
Below link has more details. I am not able to get the explanation why they are not same.
Third World Software... Development: Entity vs Value Object
Could please help me with an example..
- 06-10-2011, 06:03 PM #4
Honestly, I'm not a fan of over-complicating things by trying to make them fit into design patterns. If you don't understand the purpose of a design pattern, you're probably wasting your time memorizing the terms it uses.
But check out the wikipedia page here: Domain-driven design - Wikipedia, the free encyclopedia
From the article:
Entity: An object that is not defined by its attributes, but rather by a thread of continuity and its identity.
Example: Most airlines distinguish each seat uniquely on every flight. Each seat is an entity in this context. However, Southwest Airlines (or EasyJet/RyanAir for Europeans) does not distinguish between every seat; all seats are the same. In this context, a seat is actually a value object.
Value Object: An object that contains attributes but has no conceptual identity. They should be treated as immutable.
Example: When people exchange dollar bills, they generally do not distinguish between each unique bill; they only are concerned about the face value of the dollar bill. In this context, dollar bills are value objects. However, the Federal Reserve may be concerned about each unique bill; in this context each bill would be an entity.How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 06-14-2011, 04:59 AM #5
Member
- Join Date
- May 2011
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
connection = DriverManager.getConnection(DATABASE_URL,'"+userid +"','"+password+"');
By renu in forum New To JavaReplies: 3Last Post: 10-12-2010, 04:21 PM -
Difference b/w "synchronized","synchronize",and "synchronized()"
By Bala_Rugan in forum New To JavaReplies: 1Last Post: 09-08-2010, 04:08 PM -
How to change my form design from "metal" to "nimbus" in Netbeans 6.7.1?
By mlibot in forum New To JavaReplies: 1Last Post: 01-21-2010, 09:20 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


1Likes
LinkBack URL
About LinkBacks
Can someone pls explain me with an example. Thanks in advance!
Reply With Quote
Bookmarks