Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2618

Unstable property ordering in generated classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.RC1
    • Fix Version/s: 4.1.RC1, 4.2.M1
    • Component/s: None
    • Labels:
      None
    • Environment:
      CayenneModeler 4.1.B3-SNAPSHOT, Aug 23 build

      Description

      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.:

      -    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);
      

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

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              andrus Andrus Adamchik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: