Annotation Interface EdmNavigationProperty
Annotation for definition of an EdmNavigationProperty for an EdmEntityType which contains the navigation property as a field.
The EdmNavigationProperty annotation has to be used on a field within a EdmEntityType annotated class.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEdmMultiplicity indicates the number of entity type instances an association end can relate to: ZERO_OR_ONE (0..1)value is exactly one but can be null (i.e. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefine the name for the related Edm Association Set (of the Navigation Property).Define the name for the Navigation Property.Define the multiplicity to the target EdmEntity of the Navigation Property.Define the name for the related Edm Role (of the Navigation Property).Class<?> Define the target entity in form of a java class for the Navigation Property.
-
Element Details
-
name
String nameDefine the name for the Navigation Property. If not set a default value has to be generated by the EDM provider.- Returns:
- name for the Navigation Property
- Default:
""
-
toType
Class<?> toTypeDefine the target entity in form of a java class for the Navigation Property. The referenced java class must be annotated withEdmEntityType. If not set a EDM provider should be able to determine the corresponding type or to handle the default setting.- Returns:
- referenced java class which must be annotated with
EdmEntityType.
- Default:
java.lang.Object.class
-
association
String associationDefine the name for the related Edm Association Set (of the Navigation Property). If not set a default value has to be generated by the EDM provider.- Returns:
- name for the related Edm Association Set (of the Navigation Property).
- Default:
""
-
toRole
String toRoleDefine the name for the related Edm Role (of the Navigation Property). If not set a default value has to be generated by the EDM provider.- Returns:
- name for the related Edm Role (of the Navigation Property).
- Default:
""
-
toMultiplicity
EdmNavigationProperty.Multiplicity toMultiplicityDefine the multiplicity to the target EdmEntity of the Navigation Property. If not set a default multiplicity ofONEis assumed. This could be overwritten by the EDM provider if the correct multiplicity can be determined. As example: The default multiplicity ofONEon a field (EdmProperty) with a java typeCollectioncan be overwritten by a multiplicity ofMANY.- Returns:
- multiplicity to the target EdmEntity of the Navigation Property.
- Default:
ONE
-