Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1458

How can I order the properties in $metadata file?

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V2 2.0.11
    • None
    • odata2-jpa
    • None

    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.
       

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            mjz Mahdi Ansari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: