[
https://issues.apache.org/jira/browse/OLINGO-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex updated OLINGO-620:
------------------------
Description:
$metadata returns
<edmx:DataServices
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
m:DataServiceVersion="1.0">
Instead of m:DataServiceVersion="2.0" because CustomizableFeedMappings were
used (from examples)
List<Property> properties = new ArrayList<Property>();
properties.add(new
SimpleProperty().setName("Id").setType(EdmSimpleTypeKind.Int32).setFacets(new
Facets().setNullable(false)));
properties.add(new
SimpleProperty().setName("Model").setType(EdmSimpleTypeKind.String).setFacets(new
Facets().setNullable(false).setMaxLength(100).setDefaultValue("Hugo"))
.setCustomizableFeedMappings(new
CustomizableFeedMappings().setFcTargetPath(EdmTargetPath.SYNDICATION_TITLE)));
for example, you can try to build the tutorial
http://olingo.apache.org/doc/odata2/tutorials/basicread.html
$metadata gives 1.0
was:
$metadata returns
<edmx:DataServices
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
m:DataServiceVersion="1.0">
Instead of m:DataServiceVersion="2.0" because CustomizableFeedMappings were
used (from examples)
List<Property> properties = new ArrayList<Property>();
properties.add(new
SimpleProperty().setName("Id").setType(EdmSimpleTypeKind.Int32).setFacets(new
Facets().setNullable(false)));
properties.add(new
SimpleProperty().setName("Model").setType(EdmSimpleTypeKind.String).setFacets(new
Facets().setNullable(false).setMaxLength(100).setDefaultValue("Hugo"))
.setCustomizableFeedMappings(new
CustomizableFeedMappings().setFcTargetPath(EdmTargetPath.SYNDICATION_TITLE)));
> DataServiceVersion is set as 1.0 even if application has
> CustomizableFeedMappings
> ---------------------------------------------------------------------------------
>
> Key: OLINGO-620
> URL: https://issues.apache.org/jira/browse/OLINGO-620
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.3
> Reporter: Alex
>
> $metadata returns
> <edmx:DataServices
> xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
> m:DataServiceVersion="1.0">
> Instead of m:DataServiceVersion="2.0" because CustomizableFeedMappings were
> used (from examples)
> List<Property> properties = new ArrayList<Property>();
> properties.add(new
> SimpleProperty().setName("Id").setType(EdmSimpleTypeKind.Int32).setFacets(new
> Facets().setNullable(false)));
> properties.add(new
> SimpleProperty().setName("Model").setType(EdmSimpleTypeKind.String).setFacets(new
> Facets().setNullable(false).setMaxLength(100).setDefaultValue("Hugo"))
> .setCustomizableFeedMappings(new
> CustomizableFeedMappings().setFcTargetPath(EdmTargetPath.SYNDICATION_TITLE)));
> for example, you can try to build the tutorial
> http://olingo.apache.org/doc/odata2/tutorials/basicread.html
> $metadata gives 1.0
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)