Annotation Interface EdmMediaResourceMimeType


@Retention(RUNTIME) @Target(FIELD) public @interface EdmMediaResourceMimeType

Annotation for definition of an EdmProperty as mime type for the media resource of the EdmEntityType which contains the EdmProperty. The value of the EdmMediaResourceMimeType annotated field will be used as Content-Type of the media content response (of an OData $value request).

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