generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Roshin Rajan Panackal <roshin.rajan.panackal@sap.com>
- Loading branch information
Showing
9 changed files
with
324 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...data-core/src/main/java/com/sap/cloud/sdk/datamodel/odata/helper/ModifyPatchStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.sap.cloud.sdk.datamodel.odata.helper; | ||
|
||
import com.google.common.annotations.Beta; | ||
|
||
/** | ||
* Strategy to determine how a patch operation should be applied to an entity. | ||
* | ||
* @since 5.16.0 | ||
*/ | ||
@Beta | ||
public enum ModifyPatchStrategy | ||
{ | ||
/** Only the top level fields can be patched */ | ||
SHALLOW, | ||
|
||
/** All top level and nested fields can be patched, resulting in JSON containing only the changed fields */ | ||
RECURSIVE_DELTA, | ||
|
||
/** | ||
* All top level and nested fields can be patched, resulting in JSON containing the full value of complex object. | ||
*/ | ||
RECURSIVE_FULL | ||
} |
Oops, something went wrong.