cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (Jira)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2618) Unstable property ordering in generated classes
Date Tue, 17 Sep 2019 19:44:00 GMT

     [ https://issues.apache.org/jira/browse/CAY-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikita Timofeev closed CAY-2618.
--------------------------------
    Resolution: Fixed

> 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
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.1.B3, 4.2.M1
>
>
> 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)

Mime
View raw message