You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Yuling Zhang (JIRA)" <de...@tuscany.apache.org> on 2008/12/15 15:13:44 UTC

[jira] Created: (TUSCANY-2752) The schema got from a SDO object is not consistent with the schema from which the object is generated.

The schema got from a SDO object is not consistent with the schema from which the object is generated.
------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-2752
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2752
             Project: Tuscany
          Issue Type: Bug
          Components: C++ SDO
    Affects Versions: Cpp-M3
         Environment: Windows XP
Visual C++6.0 
CPP-tuscany_sdo-M3
libxml2-2.7.2
iconv-1.7.2
zlib-1.2.3
            Reporter: Yuling Zhang
             Fix For: Java-DAS-Next



The schema got from a SDO object is not consistent with the schema from which the object is generated. The attributes in the initial schema become elements in the schema generated later. The reason is that when generating the SDO object, the isContainment attribue of a properties comming from a attribute in the schema is not setted to false.(The default value of inContainment is true.)  Therefor, the property is recognized as a element not a attribute for its isContainment attribue is true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TUSCANY-2752) The schema got from a SDO object is not consistent with the schema from which the object is generated.

Posted by "Yuling Zhang (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuling Zhang updated TUSCANY-2752:
----------------------------------

    Attachment: SDOSchemaBugTestcase.cpp

The attached file is a testcase of the problem illuminated in the description.

> The schema got from a SDO object is not consistent with the schema from which the object is generated.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2752
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2752
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SDO
>    Affects Versions: Cpp-M3
>         Environment: Windows XP
> Visual C++6.0 
> CPP-tuscany_sdo-M3
> libxml2-2.7.2
> iconv-1.7.2
> zlib-1.2.3
>            Reporter: Yuling Zhang
>             Fix For: Java-DAS-Next
>
>         Attachments: SDOSchemaBugTestcase.cpp
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The schema got from a SDO object is not consistent with the schema from which the object is generated. The attributes in the initial schema become elements in the schema generated later. The reason is that when generating the SDO object, the isContainment attribue of a properties comming from a attribute in the schema is not setted to false.(The default value of inContainment is true.)  Therefor, the property is recognized as a element not a attribute for its isContainment attribue is true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TUSCANY-2752) The schema got from a SDO object is not consistent with the schema from which the object is generated.

Posted by "Yuling Zhang (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yuling Zhang updated TUSCANY-2752:
----------------------------------

    Attachment: SDOSchemaSAX2Parser.cpp

This is the patch for the bug, Only  the startAttribute method in SDOSchemaSAX2Parser.cpp is changed. The changement is that the following statement is added after statement "thisProperty.isElement = false;"

The added statement is:
thisProperty.isContainment = false;   //!!!!!! new added. The default value of isContaintment is true.   !!!!!!

> The schema got from a SDO object is not consistent with the schema from which the object is generated.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2752
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2752
>             Project: Tuscany
>          Issue Type: Bug
>          Components: C++ SDO
>    Affects Versions: Cpp-M3
>         Environment: Windows XP
> Visual C++6.0 
> CPP-tuscany_sdo-M3
> libxml2-2.7.2
> iconv-1.7.2
> zlib-1.2.3
>            Reporter: Yuling Zhang
>             Fix For: Java-DAS-Next
>
>         Attachments: SDOSchemaBugTestcase.cpp, SDOSchemaSAX2Parser.cpp
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The schema got from a SDO object is not consistent with the schema from which the object is generated. The attributes in the initial schema become elements in the schema generated later. The reason is that when generating the SDO object, the isContainment attribue of a properties comming from a attribute in the schema is not setted to false.(The default value of inContainment is true.)  Therefor, the property is recognized as a element not a attribute for its isContainment attribue is true.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.