Package | Description |
---|---|
com.sap.cloud.sdk.datamodel.odata.generator.annotation |
Modifier and Type | Method and Description |
---|---|
Set<AnnotationDefinition> |
DefaultAnnotationStrategy.getAnnotationsForAssociatedEntity(NavigationPropertyAnnotationModel context)
Default implementation for the SAP Cloud SDK which adds the following annotations:
Gson
SerializedName with the value set to the OData EDM name of the navigation property.
Jackson JsonProperty with the value set to the OData EDM name of the navigation property.
Nullable , but only if the multiplicity of the navigation property is 1..1 or 0..1
|
Set<AnnotationDefinition> |
AnnotationStrategy.getAnnotationsForAssociatedEntity(NavigationPropertyAnnotationModel context)
Gets a list of annotations to apply to generated member variables representing OData navigation properties.
|
Set<AnnotationDefinition> |
DefaultAnnotationStrategy.getAnnotationsForComplexType(EntityAnnotationModel context)
Default implementation for the SAP Cloud SDK which adds the following annotations:
Lombok
Builder , NoArgsConstructor , and AllArgsConstructor . |
Set<AnnotationDefinition> |
AnnotationStrategy.getAnnotationsForComplexType(EntityAnnotationModel context)
Gets a list of annotations to apply to generated classes representing OData complex types, at the class level.
|
Set<AnnotationDefinition> |
DefaultAnnotationStrategy.getAnnotationsForComplexTypeProperty(EntityPropertyAnnotationModel context)
Default implementation for the SAP Cloud SDK which adds the following annotations:
Gson
SerializedName with the value set to the OData EDM name of the complex type property.
Jackson JsonProperty with the value set to the OData EDM name of the complex type property.
Nullable
Gson JsonAdapter with default parameter set to an appropriate TypeAdapter
class. |
Set<AnnotationDefinition> |
AnnotationStrategy.getAnnotationsForComplexTypeProperty(EntityPropertyAnnotationModel context)
Gets a list of annotations to apply to generated member variables representing OData properties of complex types.
|
Set<AnnotationDefinition> |
DefaultAnnotationStrategy.getAnnotationsForEntity(EntityAnnotationModel context)
Default implementation for the SAP Cloud SDK which adds the following annotations:
Lombok
Builder , NoArgsConstructor , and AllArgsConstructor . |
Set<AnnotationDefinition> |
AnnotationStrategy.getAnnotationsForEntity(EntityAnnotationModel context)
Gets a list of annotations to apply to generated classes representing OData entities, at the class level.
|
Set<AnnotationDefinition> |
DefaultAnnotationStrategy.getAnnotationsForEntityProperty(EntityPropertyAnnotationModel context)
Default implementation for the SAP Cloud SDK which adds the following annotations:
Gson
SerializedName with the value set to the OData EDM name of the entity property.
Jackson JsonProperty with the value set to the OData EDM name of the entity property.
Nullable
Gson JsonAdapter with default parameter set to an appropriate TypeAdapter
class. |
Set<AnnotationDefinition> |
AnnotationStrategy.getAnnotationsForEntityProperty(EntityPropertyAnnotationModel context)
Gets a list of annotations to apply to generated member variables representing OData properties of entities.
|
Copyright © 2019 SAP SE. All rights reserved.