You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Frank Zhu (JIRA)" <ji...@apache.org> on 2012/10/05 05:45:47 UTC

[jira] [Commented] (CAY-1584) Improve Cayenne modeler re-ordering named query in the cayenne map xml

    [ https://issues.apache.org/jira/browse/CAY-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470004#comment-13470004 ] 

Frank Zhu commented on CAY-1584:
--------------------------------

Thanks for that. Dzmitry
                
> Improve Cayenne modeler re-ordering named query in the cayenne map xml
> ----------------------------------------------------------------------
>
>                 Key: CAY-1584
>                 URL: https://issues.apache.org/jira/browse/CAY-1584
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Modeler
>    Affects Versions: 3.0.2
>         Environment: Windows 7, SUN JDK 1.6
>            Reporter: Frank Zhu
>            Assignee: Dzmitry Kazimirchyk
>            Priority: Minor
>             Fix For: 3.0.3, 3.1M3
>
>
> We have got this issue that where multiple cayenne modeler re-orders differently for the named query every time we modify it and save.
> Someone in my team modified the named query, and check the code in. The order for a particular named query becomes
> <sql><![CDATA[...]]></sql>
> <sql adapter-class="org.apache.cayenne.dba.oracle.OracleAdapter"><![CDATA[...]]></sql>
> <sql adapter-class="org.apache.cayenne.dba.sqlserver.SQLServerAdapter"><![CDATA[...]]></sql>
> <sql adapter-class="org.apache.cayenne.dba.mysql.MySQLAdapter"><![CDATA[...]]></sql>
> After I check out and make some changes, the order becomes 
> <sql><![CDATA[...]]></sql>
> <sql adapter-class="org.apache.cayenne.dba.mysql.MySQLAdapter"><![CDATA[...]]></sql>
> <sql adapter-class="org.apache.cayenne.dba.sqlserver.SQLServerAdapter"><![CDATA[...]]></sql>
> <sql adapter-class="org.apache.cayenne.dba.oracle.OracleAdapter"><![CDATA[...]]></sql>
> Since we have a lot of named query defined in Cayenne. This makes our merging process difficult. After check out, we'll see a lot of queries are changed. In fact, only re-ordering has been done. So we can't see what others did to the cayenne.xml easily.
> Any short workaround about this problem is appreciated as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira