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

Christian Amend commented on OLINGO-121:
----------------------------------------

Hi,

with the commit above I implmented the feature. The version is 1.2.0-SNAPSHOT 
for now but I will include it in the 1.1.0 release.

Best Regards,
Christian

> Support metadata:type attribute in Entity Properties
> ----------------------------------------------------
>
>                 Key: OLINGO-121
>                 URL: https://issues.apache.org/jira/browse/OLINGO-121
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata2-core
>    Affects Versions: V2 1.0.0
>            Reporter: M Carissimi
>            Assignee: Christian Amend
>             Fix For: V2 1.1.0
>
>
> Certain OData consumers (i.e. PowerPivot for Microsfot Excel) require that 
> the metadata:type attribute is set for all Property values in an Entry, for 
> example:
> {code}
> <entry xmlns="http://www.w3.org/2005/Atom"; 
> xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; 
> xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
> xml:base="http://localhost/odata/resourcenolinks.svc/";>
>       ...
>       <content type="application/xml">
>               <m:properties>
>                       <d:FROM_DATE 
> m:type="Edm.DateTime">2013-07-01T00:00:00</d:FROM_DATE>
>                       <d:TO_DATE m:type="Edm.DateTime" m:null="true"/>
>                       <d:IS_ACTIVE m:type="Edm.Boolean">true</d:IS_ACTIVE>
>                       <d:ORGANISATION>EnergySys Support</d:ORGANISATION>
>                       <d:ORDER_NUMBER m:type="Edm.Int32">2</d:ORDER_NUMBER>
>               </m:properties>
>       </content>
> </entry>
> {code}
> The Olingo library does not specify the metadata:type attribute for 
> properties and this means that software relying on that property can't 
> correctly consume data generated with Olingo.
> This library should support a way to set the metadata:type attribute for 
> properties. This could be done by allowing the producer to explicitly set the 
> type for each property (as done in odata4j) or it could be automatically 
> added by using the type definition in the EntityType associated with the data.
> This enhancement has been raised following discussion with Michael Boltz (see 
> OLINGO-118 for details)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to