Author: chrish
Date: Wed Oct 21 12:43:02 2015
New Revision: 1709817
URL: http://svn.apache.org/viewvc?rev=1709817&view=rev
Log:
CMS commit to olingo by chrish
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
URL:
http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext?rev=1709817&r1=1709816&r2=1709817&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
(original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
Wed Oct 21 12:43:02 2015
@@ -70,7 +70,7 @@ As you can see, the XML tag `EntityType`
### Extend the metadata document
-If you have read the prevois tutorials, you should be familiar with the
definition entity types. The only difference to regular (Non media enties) is,
that they have a `hasStream` property. If this property is not provided it
defaults to false. So add the following code to class `DemoEdmProvider`:
+If you have read the previous tutorials, you should be familiar with the
definition entity types. The only difference to regular (Non media enties) is,
that they have a `hasStream` property. If this property is not provided it
defaults to false. So add the following code to class `DemoEdmProvider`:
We start with method `DemoEdmProvider.getEntityType`
@@ -168,7 +168,7 @@ If we update the content of a media enti
entity.setMediaContentType(mediaContentType);
}
-If a client creates a new media entity, the body of the requet contains the
content of the media entity instead the regualr properties! So the other
regular properties defaults to `null`. The Content Type of the media content
must also be set.
+If a client creates a new media entity, the body of the requet contains the
content of the media entity instead the regular properties! So the other
regular properties defaults to `null`. The Content Type of the media content
must also be set.
::::java
public Entity createMediaEntity(final EdmEntityType edmEntityType, final
String mediaContentType, final byte[] data) {