[ https://issues.apache.org/jira/browse/OLINGO-1458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahdi Ansari updated OLINGO-1458: --------------------------------- Description: How can I order the properties or fields in the {{$metadata}} file in {{Olingo2}}? At the moment there is alphabetic order between the properties inside metadata file. {{}} {code:java} <EntityType Name="Condition"> <Key><PropertyRef Name="Id"/></Key> <Property Name="ActionId" Type="Edm.String" Nullable="false" MaxLength="255"/> <Property Name="Deleted" Type="Edm.Byte" Nullable="false"/> <Property Name="Id" Type="Edm.Int32" Nullable="false"/> <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="255"/> </EntityType>{code} However I want it like this, for example first the {{Id}} then {{Name}} and so on in the metadata. {{}} {code:java} <EntityType Name="Condition"> <Key><PropertyRef Name="Id"/></Key> <Property Name="Id" Type="Edm.Int32" Nullable="false"/> <Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="255"/> <Property Name="ActionId" Type="Edm.String" Nullable="false" MaxLength="255"/> <Property Name="Deleted" Type="Edm.Byte" Nullable="false"/> </EntityType>{code} was: How can I order the properties or fields in the {{$metadata}} file in {{Olingo2}}? At the moment there is alphabetic order between the properties inside metadata file. {{<EntityType Name="Condition"><Key><PropertyRef Name="Id"/></Key><Property Name="ActionId" Type="Edm.String" Nullable="false" MaxLength="255"/><Property Name="Deleted" Type="Edm.Byte" Nullable="false"/><Property Name="Id" Type="Edm.Int32" Nullable="false"/><Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="255"/></EntityType>}} However I want it like this, for example first the {{Id}} then {{Name}} and so on in the metadata. {{<EntityType Name="Condition"><Key><PropertyRef Name="Id"/></Key><Property Name="Id" Type="Edm.Int32" Nullable="false"/><Property Name="Name" Type="Edm.String" Nullable="false" MaxLength="255"/><Property Name="ActionId" Type="Edm.String" Nullable="false" MaxLength="255"/><Property Name="Deleted" Type="Edm.Byte" Nullable="false"/></EntityType>}} > How can I order the properties in $metadata file? > ------------------------------------------------- > > Key: OLINGO-1458 > URL: https://issues.apache.org/jira/browse/OLINGO-1458 > Project: Olingo > Issue Type: Question > Components: odata2-jpa > Affects Versions: V2 2.0.11 > Reporter: Mahdi Ansari > Priority: Major > > How can I order the properties or fields in the {{$metadata}} file in > {{Olingo2}}? > At the moment there is alphabetic order between the properties inside > metadata file. > > {{}} > {code:java} > <EntityType Name="Condition"> > <Key><PropertyRef Name="Id"/></Key> > <Property Name="ActionId" Type="Edm.String" Nullable="false" > MaxLength="255"/> > <Property Name="Deleted" Type="Edm.Byte" Nullable="false"/> > <Property Name="Id" Type="Edm.Int32" Nullable="false"/> > <Property Name="Name" Type="Edm.String" Nullable="false" > MaxLength="255"/> > </EntityType>{code} > However I want it like this, for example first the {{Id}} then {{Name}} and > so on in the metadata. > > {{}} > {code:java} > <EntityType Name="Condition"> > <Key><PropertyRef Name="Id"/></Key> > <Property Name="Id" Type="Edm.Int32" Nullable="false"/> > <Property Name="Name" Type="Edm.String" Nullable="false" > MaxLength="255"/> > <Property Name="ActionId" Type="Edm.String" Nullable="false" > MaxLength="255"/> > <Property Name="Deleted" Type="Edm.Byte" Nullable="false"/> > </EntityType>{code} -- This message was sent by Atlassian Jira (v8.3.4#803005)