Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2088

Wrong serialisation order of elements when using Aegis databinding.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4
    • 2.1.5
    • Aegis Databinding
    • None
    • Advanced

    Description

      In my current case I hava

      • an abstract Java class "AbstractDatabaseObject" defining a property "id".
      • an abstract Java class "Credential" which extends "AbstractDatabaseObject" and defines a property "name"
      • a concrete Java class "UsernamePasswordCredential" which extends "Credential" and defines properties "username" and "password"

      All schemas are created to my greates satisfaction (Great Job!).
      Unfortunately the serialisation order when using Aegis databinding (don't know if its the same using others) is the wrong way around.
      Instead of getting:
      <cred>
      <id>306ce816-01b7-11de-8d92-8d4df6b73eb1</id>
      <name>dsfgsdfgs</name>
      <password>dsfsfdg</password>
      <username>sdsdfgsdfg</username>
      </cred>

      I get:
      <cred>
      <password>dsfsfdg</password>
      <username>sdsdfgsdfg</username>
      <name>dsfgsdfgs</name>
      <id>306ce816-01b7-11de-8d92-8d4df6b73eb1</id>
      </cred>

      Which my Flex client complains about.

      I'll try to whip up a patch fixing this issue today.

      Attachments

        1. BeanType.java
          28 kB
          Christofer Dutz

        Activity

          People

            bmargulies Benson Margulies
            chrisdutz Christofer Dutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: