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)