@Retention(value=RUNTIME) @Target(value=FIELD) public @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.Modifier and Type | Optional Element and Description |
---|---|
String |
association
Define the name for the related Edm Association Set (of the Navigation Property).
|
String |
name
Define the name for the Navigation Property.
|
EdmNavigationProperty.Multiplicity |
toMultiplicity
Define the multiplicity to the target EdmEntity of the Navigation Property.
|
String |
toRole
Define the name for the related Edm Role (of the Navigation Property).
|
Class<?> |
toType
Define the target entity in form of a java class for the Navigation Property.
|
public abstract String name
public abstract Class<?> toType
EdmEntityType
.
If not set a EDM provider should be able to determine the corresponding type or
to handle the default setting.EdmEntityType
.public abstract String association
public abstract String toRole
public abstract EdmNavigationProperty.Multiplicity toMultiplicity
ONE
is assumed.
This could be overwritten by the EDM provider if the correct multiplicity can be determined.
As example: The default multiplicity of ONE
on a field (EdmProperty) with
a java type Collection
can be overwritten by a multiplicity of MANY
.Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.