Laurent PETIT ([EMAIL PROTECTED]) wrote: > Hello, > > IMHO, there's a difference between DTOs and Value Objects. > > When I use the term Value Object, I mean an immutable object, such as a > String, a Date, a Money, ....those things who are best designed as immutable > if you want to take it easy with the sharing problems ... > > > When I use the term DTO, it does'nt necessarily imply that it's an immutable > object, it's a holder of the values of a Business Object (or a flat > representation of a short hierarchy of Business Objects => a coarse grained > object), and it still has getters and setters because it navigates between > two adjacent layers. > > So for me the major difference is immutabiliy / mutability. > > My 0.02 EUR,
So in effect we are agreeing, and also with the article. So the lame part about the article was that it used the term "Java Value Types" when it should have been DTO and it was about 6 months too late for anything new and interesting to be said. hehehe Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[EMAIL PROTECTED]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Frodo]: "He deserves death." [Gandalf]: "Deserves it! I daresay he does. Many that live deserve death. And some that die deserve life. Can you give it to them? Then do not be too eager to deal out death in judgement. For even the very wise cannot see all ends." - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

