You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Christian Amend (JIRA)" <ji...@apache.org> on 2015/11/26 17:27:11 UTC
[jira] [Commented] (OLINGO-830) DefaultValue of a property not set
in the map returned by ODataEntry.getProperties()
[ https://issues.apache.org/jira/browse/OLINGO-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029074#comment-15029074 ]
Christian Amend commented on OLINGO-830:
----------------------------------------
Hi,
does this happen after you deserialize a payload into an entry or if you pass an entry to our serializer to create the response which you send to a client?
It would help if you could share the code which builds the ODataEntry e.g. which Olingo method you call to get it and what the parameters are.
Best Regards,
Christian
> DefaultValue of a property not set in the map returned by ODataEntry.getProperties()
> ------------------------------------------------------------------------------------
>
> Key: OLINGO-830
> URL: https://issues.apache.org/jira/browse/OLINGO-830
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.5
> Environment: Oracle JDK 1.7 u80
> Reporter: Jonathan Bayle
>
> Dear olingo developers,
> The DefaultValue of a property not set in the map returned by {{ODataEntry.getProperties()}} when creating an entry.
> I updated Olingo in my project from v2.0.1 to v2.0.5, this code:
> {noformat}
> properties.add(new SimpleProperty().setName(PAGE_SIZE)
> .setType(EdmSimpleTypeKind.Int32)
> .setFacets(
> new Facets()
> .setNullable(false)
> .setDefaultValue("30")
> )
> );
> {noformat}
> sets a default value of {{30}} to the PageSize property,
> * with Olingo v2.0.1 {{odata_entry.getProperties().get(PAGE_SIZE);}} returns an Integer whose value is 30
> * with Olingo v2.0.5 {{odata_entry.getProperties().get(PAGE_SIZE);}} returns {{null}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)