forDeepCreate

open fun forDeepCreate(vararg paths: PropertyPath): EntityValue

Set a flag to mark this entity to be copied by a subsequent DataService.makeDraftCopy call, in preparation for a later DataService.activateDraft call that will create the entity. Set {@link com.sap.cloud.mobile.kotlin.odata.EntityValue#cascadePaths EntityValue.cascadePaths} to paths if paths is non-empty, otherwise set {@link com.sap.cloud.mobile.kotlin.odata.EntityValue#cascadePaths EntityValue.cascadePaths} to null. If paths is empty, the subsequent deep create should include composition children (recursively) which are specified with on-delete-cascade.

See Also:

Create Related Entities When Creating an Entity.

Return

This entity instance.

Parameters

paths

List of property paths (usually {@link com.sap.cloud.mobile.kotlin.odata.Property} instances).