Use the create method to create entities.
Purpose
The create method creates an entity along with
its properties in the underlying repository. The empty root data object can
be obtained from the createRootDataObject() from the Service
class. Then the entity, along with the properties needed, can be added under
the root data object.
The output root data object of the create method
contains the entity data object that has been created. This entity data object
contains only its identifier.
Parameters
- root
- Specifies the root data object that contains the entity to be created.
Returns
The root data object that contains the created
entity and its identifier.
Signature
public DataObject create(DataObject root)
throws WIMException