You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (Jira)" <ji...@apache.org> on 2019/09/17 19:44:00 UTC
[jira] [Closed] (CAY-2618) Unstable property ordering in generated
classes
[ 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)