The Source for Java Technology Collaboration


Home | Help | Changes | Index | Search | Go

Value Object

Meaning 1: equals and hashCode based on field values

The equals and hashCode methods use field values instead of the default behaviour of using the object's memory address. There are many examples of Value Objects in the standard library, e.g. Integer and String. Note: Value Objects are often also Immutable Objects.

Meaning 2: data-centric classes

Value Object (VO) is an informal term used to describe data-centric classes which model a given problem domain. In the case of a database backend, a Value Object will map roughly to a record in a database table. The fields of the VO will map to the various columns in the table.

Synonyms : Data transfer object (DTO), Persistent Object, Storable.


Also see


Discussion about ValueObject

Hmm...There might be two ideas here, not one. Value Objects are not necessarily related to a persistence mechanism.

-- JohnOHanley - 23 Jul 2003

Topic ValueObject . { Edit | Ref-By | Printable | Diffs r4 < r3 < r2 < r1 | More }
 XML java.net RSS

Revision r4 - 20 Jul 2004 - 08:16:00 - Main.hlovatt
Parents: JavaBeans