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


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

Annotation for definition of an EdmProperty as media resource content for the EdmEntityType which contains the EdmProperty. Additionally an EdmEntityType will be flagged in the EDM as hasStream == true if an EdmProperty in conjunction with the EdmMediaResourceContent annotation is defined.

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



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