cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Grobmeier (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAY-1540) Selecting prefetching in Modeller Query causes wrong xml
Date Fri, 18 Feb 2011 09:11:38 GMT
Selecting prefetching in Modeller Query causes wrong xml
--------------------------------------------------------

                 Key: CAY-1540
                 URL: https://issues.apache.org/jira/browse/CAY-1540
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.0.1
            Reporter: Christian Grobmeier


1. create new ObjectQuery
2. Add a prefetch
3. Hit save
4. Add a qualifier
5. Hit save

An XML with wrong tag order (according to xsd) is generated:

	<query name="UserProjectsQuery" factory="org.apache.cayenne.map.SelectQueryBuilder" root="obj-entity"
root-name="UserProjects">
		<qualifier><![CDATA[userToJoin.email = $email]]></qualifier>
		<prefetch>userToJoin</prefetch>
	</query>

It should be:

	<query name="UserProjectsQuery" factory="org.apache.cayenne.map.SelectQueryBuilder" root="obj-entity"
root-name="UserProjects">
		<prefetch>userToJoin</prefetch>
		<qualifier><![CDATA[userToJoin.email = $email]]></qualifier>
	</query>


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message