Standing on the shoulders (well, maybe feet) of giants
[ start | index | login or register ]
start > comment-Value Object Implementation-1

comment-Value Object Implementation-1 commented Value Object Implementation

Created by Dirk Riehle. Last edited by Dirk Riehle, 2 years and 173 days ago. Viewed 179 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
From Johannes Brodwall
  • You talk about mapping objects to the database. Another interesting aspect is mapping objects to the UI.
  • For languages other than Java, operator overloading is often used to simplify use of value objects. Consider something like: "Date.today + 5.days". (Ruby)
  • You mention overriding equals and hashCode. In Java, you often want to implement Comparable as well.
one comment (by Dirk Riehle) | post comment
Copyright (©) 2006 by Dirk Riehle or the respective authors. All rights reserved.