Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1193

unable to create data objects from dynamic metadata that match data objects created from XSD metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SDO-M2
    • Java-SDO-beta1
    • None
    • Java 1.4.2

    Description

      I have been unable to create data objects using dynamic metadata with the same information content as data objects created from XSD metadata. The problem is apparent for XSD elements that have maxOccurs greater than one when the element has repeated values.

      Frank Budinsky responded to my posting on tuscany-dev with this statement:
      "It seems that the dynamic API is creating properties with EMF's
      EStructuralFeature.isUnique == true, while XSDEcoreBuilder sets it to
      false.

      I guess we should always set it to false (for DataTypes), to be
      consistent.
      "
      I believe that both should be false for consistency and so that data objects can accurately represent the content of XML files.

      I will attach a test case that demonstrates the problem and can verify its correction.

      Attachments

        Activity

          People

            Unassigned Unassigned
            golick Paul Golick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: