org.apache.olingo.odata2.api.annotation.edm
Annotation Type EdmKey


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface EdmKey

Annotation for definition of an EdmProperty as EdmKey for the EdmEntityType which contains the EdmProperty.

This annotation can not be parameterized, all values like name are defined via the EdmProperty annotation. In addition the EdmKey annotation has to be used in conjunction with an EdmProperty annotation on a field within a EdmEntityType annotated class.



Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.