In this tutorial you will learn about Value Object Pattern of java
In this tutorial you will learn about Value Object Pattern of javaSome entities contains a group of attribute that are always access together. To access these attribute though a remote interface causes network traffic and consumes unnecessary server resources. To come out from this problem you can Value Object Design Pattern. It encapsulate all the data as a single object and provide a single method to send and retrieve data.
Suppose in an enterprise application an entity bean implements a persistent business components. It exposes the value of its attribute by providing a methods (getter and setter) for each attributes. When client needed the value of this attribute then he has to call these getter method for each attribute. to reduce this overhead it is good to use Value Object Design Pattern to transport data from entity bean to its clients.
Value Object Design Pattern