You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Kiran G (JIRA)" <ji...@apache.org> on 2014/11/24 15:17:12 UTC

[jira] [Created] (OLINGO-498) Provide support for List of ComplexType or SimpleType as attributes in ComplexType

Kiran G created OLINGO-498:
------------------------------

             Summary: Provide support for List of ComplexType or SimpleType as attributes in ComplexType
                 Key: OLINGO-498
                 URL: https://issues.apache.org/jira/browse/OLINGO-498
             Project: Olingo
          Issue Type: Improvement
          Components: odata2-core
    Affects Versions: V2 2.0.0
            Reporter: Kiran G
            Priority: Minor


In the below snippet the attributes of User - addresses and roles are Collections and there is no support to define them programatically.

{code}
<ComplexType Name="Address">
<Property Name="addressLine1" Type="Edm.String"/>
<Property Name="addressLine2" Type="Edm.String"/>
<Property Name="state" Type="Edm.String"/>
<Property Name="country" Type="Edm.String"/>
<Property Name="zip" Type="Edm.String"/>
</ComplexType>
<ComplexType Name="User">
<Property Name="name" Type="Edm.String"/>
<Property Name="addresses" Type="Collection(test.Address)"/>
<Property Name="roles" Type="Collection(Edm.String)"/>
</ComplexType>
{code}

There is only support to add a single ComplexType to another complex type and not the collection.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)