cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruslan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2002) Modeler generated datamap does not correspond to xsd schema
Date Fri, 10 Apr 2015 16:33:13 GMT

     [ https://issues.apache.org/jira/browse/CAY-2002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ruslan updated CAY-2002:
------------------------
    Attachment: modelMap.xsd
                datamap.map.xml
                cayenne-test.xml

attaching test files which were used to reproduce the issue

> Modeler generated datamap does not correspond to xsd schema
> -----------------------------------------------------------
>
>                 Key: CAY-2002
>                 URL: https://issues.apache.org/jira/browse/CAY-2002
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.M2
>         Environment: Linux localhost 3.2.0-74-generic #109-Ubuntu SMP Tue Dec 9 16:45:49
UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Ruslan
>            Priority: Trivial
>         Attachments: cayenne-test.xml, datamap.map.xml, modelMap.xsd
>
>
> To reproduce:
> * Use the following schema:
> http://cayenne.apache.org/schema/7/modelMap.xsd
> * Create a query with ordering(s), prefetch(es) and qualifier in Modeler, save
> * Validate resulting xml:
> $xmllint --noout --schema modelMap.xsd datamap.map.xml 
> datamap.map.xml:26: element qualifier: Schemas validity error : Element '{http://cayenne.apache.org/schema/7/modelMap}qualifier':
This element is not expected. Expected is ( {http://cayenne.apache.org/schema/7/modelMap}prefetch
).
> datamap.map.xml fails to validate
> Result: validation failed.
> Expected: sequence of generated sub-elements of "query" element corresponds to the schema.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message