From Eclipsepedia

Jump to: navigation, search

Creating DataObjects

Using DataFactory

DataObjects can be created by Type using DataFactory:

Type addressType = TypeHelper.INSTANCE.getType("", "address-type");
DataObject addressDO = DataFactory.INSTANCE.create(addressType);

Using DataObject

Once you have a DataObject you can use it to create child DataObjects based on its properties:

DataObject contactInfoDO = customerDO.createDataObject("contact-info");
DataObject billingAddressDO = contactInfoDO.createDataObject("billing-address");