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

Unstable property ordering in generated classes

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.RC1
    • 4.1.RC1, 4.2.M1
    • None
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment