[ https://issues.apache.org/jira/browse/OLINGO-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029080#comment-15029080 ]
Jonathan Bayle commented on OLINGO-830: --------------------------------------- It happens after I deserialise a payload into an entry, in ODataSingleProcessor.createEntity(...) Code is: {noformat} @Override public ODataResponse createEntity(PostUriInfo uri_info, InputStream content, String rq_content_type, String content_type) throws ODataException { EntityProviderReadProperties properties = EntityProviderReadProperties.init().mergeSemantic(false).build(); ODataEntry entry = EntityProvider.readEntry(rq_content_type, uri_info.getStartEntitySet(), content, properties); // ... {noformat} > 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 > Assignee: Christian Amend > > 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)