You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (Jira)" <ji...@apache.org> on 2019/09/14 08:21:00 UTC

[jira] [Created] (CAY-2618) Unstable property ordering in generated classes

Andrus Adamchik created CAY-2618:
------------------------------------

             Summary: Unstable property ordering in generated classes
                 Key: CAY-2618
                 URL: https://issues.apache.org/jira/browse/CAY-2618
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 4.1.B3
         Environment: CayenneModeler 4.1.B3-SNAPSHOT, Aug 23 build
            Reporter: Andrus Adamchik


I am using CayenneModeler 4.1, Aug 23 build. When doing class generation I often get property ordering that is not alphabetic. Moreover when I change something in the entities, and regenerate classes, ordering of the existing properties may change again. 

Eventually it seems to settle on the alphabetical order, bit the initial order (usually right after dbimport step) may be wrong. E.g.:

{noformat}
-    public static final Property<String> NAME = Property.create("name", String.class);
     public static final Property<Boolean> BILLABLE = Property.create("billable", Boolean.class);
+    public static final Property<String> NAME = Property.create("name", String.class);
{noformat}

I think this is kind of important to fix prior to 4.1 RC1, as this creates noise in the project git history.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)