olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chr...@apache.org
Subject svn commit: r1701773 - /olingo/site/trunk/content/doc/odata4/tutorials/navigation/tutorial_navigation.mdtext
Date Tue, 08 Sep 2015 11:11:02 GMT
Author: chrish
Date: Tue Sep  8 11:11:02 2015
New Revision: 1701773

URL: http://svn.apache.org/r1701773
Log:
CMS commit to olingo by chrish

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/navigation/tutorial_navigation.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/navigation/tutorial_navigation.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/navigation/tutorial_navigation.mdtext?rev=1701773&r1=1701772&r2=1701773&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/navigation/tutorial_navigation.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/navigation/tutorial_navigation.mdtext Tue
Sep  8 11:11:02 2015
@@ -505,7 +505,7 @@ For our implementation, this means:
 As shown below, from the source `EdmEntitySet` we get the binding target, based on the navigation
property.
 
     :::java
-    EdmBindingTarget edmBindingTarget = startEntitySet.getRelatedBindingTarget(navPropName);
+    EdmBindingTarget edmBindingTarget = startEdmEntitySet.getRelatedBindingTarget(navPropName);
     if(edmBindingTarget instanceof EdmEntitySet){
 	    navigationTargetEntitySet = (EdmEntitySet)edmBindingTarget;
 
@@ -575,7 +575,7 @@ The following snippet shows the implemen
 	EntityCollectionSerializerOptions opts = EntityCollectionSerializerOptions.with().contextURL(contextUrl).build();
 	EdmEntityType edmEntityType = responseEdmEntitySet.getEntityType();
 
-	ODataSerializer serializer = odata.createSerializer(ODataFormat.fromContentType(responseFormat));
+	ODataSerializer serializer = odata.createSerializer(responseFormat);
 	SerializerResult serializerResult = serializer.entityCollection(this.srvMetadata, edmEntityType,
responseEntityCollection, opts);
 
 	// 4th: configure the response object: set the body, headers and status code
@@ -818,8 +818,7 @@ So now we can finally have a look at the
     	ContextURL contextUrl = ContextURL.with().entitySet(responseEdmEntitySet).suffix(Suffix.ENTITY).build();
     	EntitySerializerOptions opts = EntitySerializerOptions.with().contextURL(contextUrl).build();
 
-    	ODataFormat oDataFormat = ODataFormat.fromContentType(responseFormat);
-    	ODataSerializer serializer = this.odata.createSerializer(oDataFormat);
+    	ODataSerializer serializer = this.odata.createSerializer(responseFormat);
     	SerializerResult serializerResult = serializer.entity(this.srvMetadata, responseEdmEntityType,
responseEntity, opts);
 
     	//4. configure the response object



Mime
View raw message