cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Schmidt (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-910) CM: Keep original field order
Date Thu, 26 Mar 2009 14:27:58 GMT

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

Joseph Schmidt commented on CAY-910:
------------------------------------

Please add a setting to allow at reverse engineering to keep the field order from the database.
This order is very important because it can keep related fields together, making the code
more readable (it is also required in many projects).
Also generation tools can't use the cayenne mapping file because of this missing order: for
many tools it would be much simpler to use the DomainMap.xml(since it's very simple) generated
by Cayenne Modeler instead of doing themself a custom DB reverse engineering to get that info.


> CM: Keep original field order
> -----------------------------
>
>                 Key: CAY-910
>                 URL: https://issues.apache.org/jira/browse/CAY-910
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 1.2 branch, 2.0 branch, 3.0
>            Reporter: Thomas Bernhard
>            Assignee: Andrus Adamchik
>
> Please keep the original order of fields on reverse engineering in Cayenne Modeler.
> It looks like some sort of alphabetical sorting is done on reverse engineering, without
offering the user the possibility *not* to sort. I think this is a bug - most professional
DB tools respect this original order.
> The user defined order of fields is very important, cause in many companies there are
special code conventions and practices regarding this ordering and field naming. CM's "sorting"
makes the work a pain - please fix this problem.
> I understand that in some cases such a "sorting" behaviour is wished, but I think that
"sorting" should be a separate feature and it shouldn't be active by default. Of course another
possibility would be to add a setting to CM Preferences : "Sort fileds", but that would be
more work.

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


Mime
View raw message