[ 
https://issues.apache.org/jira/browse/OLINGO-830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031573#comment-15031573
 ] 

Christian Amend commented on OLINGO-830:
----------------------------------------

Hi,

I tried to reproduce this behaviour but could not. The behaviour you secribe 
was never intended. To see if it was present I searched for the usage of the 
getDefaultValue method. This method was only used in Tests and a very specific 
case for comlex properties in XML. This XML case is a bug in my opinion. So the 
usage was the same for 2.0.1 and 2.0.5.

Are you using any extension like JPA? Something that would explain why you see 
this behaviour? If you could attach a way to reproduce this please reopen the 
issue.

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
>            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)

Reply via email to