The issue was that Martin Fowler's crew had used the name "Value Object" to describe a slightly different pattern than what Sun decided to call its own pattern, recently renamed to "Transfer Object" pattern. Martin Fowler's description of "Value Object": A small simple object, like money or a date range, whose equality isn't based on identity. Martin Fowler's description of "(Data) Transfer Object": An object that carries data between processes in order to reduce the number of method calls.
Thanks for the answer. I was confused regarding this since last week and had arguments with my friends as well . Nice to have you here! Martin Flowers value object is supposed to be immutable. Am I right?
Joined: Jan 23, 2002
Martin Flowers value object is supposed to be immutable. Am I right?
I'm not sure whether he has explicitly said it out loud, but I think most people would suggest making Value Objects immutable.