Example 8.13 Value Object Factory Strategy - Entity Bean Class public class CustomerContactEntity extends CustomerContactVO implements javax.ejb.EntityBean { // implement other entity bean methods...not shown // define constant to hold class name // complete value object. This is required by // the ValueObjectFactory.createValueObject(...) public static final String COMPLETE_VO_CLASSNAME = "CustomerContactVO"; // method to return CustomerContactVO value object public CustomerContactVO getCustomerContact() { return (CustomerContactVO) ValueObjectFactory.createValueObject( this, "CustomerContactVO", COMPLETE_VO_CLASSNAME); } // method to return CustomerVO value object public CustomerVO getCustomer() { return (CustomerVO) ValueObjectFactory.createValueObject( this, "CustomerVO", COMPLETE_VO_CLASSNAME); } // method to return ContactVO value object public ContactVO getContact() { return (ContactVO) ValueObjectFactory.createValueObject( this, "ContactVO", COMPLETE_VO_CLASSNAME); } // other entity bean business methods ... }