cayenne-commits mailing list archives

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

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


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