Skip to main content

Projections as Input

It is possible to use projections as input for both create and modify. In this case only the fields defined in the projection will be updated.

Example
CityMyProjection city = new CityMyProjection();
city.setDescription(newDescription)

CrudsResult<DataRef> result = cityLocalAgent.createWithProjection(city);
Option
cruds.createWithProjection ApplicationApplicationInstanceComponentDataElement

Adds a method to the DataElement classes to create an instance with a projection other than details.

<options>
<cruds.createWithProjection/>
</options>
Option
cruds.modifyWithProjection ApplicationApplicationInstanceComponentDataElement

Adds a method to the DataElement classes to modify an instance with a projection other than details.

<options>
<cruds.modifyWithProjection/>
</options>