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

cayenne-lifecycle: @SortWeight annotation

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1M2
    • 3.1M3
    • Lifecycle Extensions
    • None

    Description

      Sometimes it is useful to manually override the operation ordering for some entities. E.g. per CAY-1547 we support UuidRelationships, but saving an object with a UuidRelationship to another object does not generate correct ordering. So we may want to override default ordering for entities annotated with @UuidRelationship. E.g.:

      @SortWeight(35)
      @UuidRelationship("UUID")
      class My extends _My {}

      Note that this approach will not be able to address all shortcomings of a generic AshwoodEntitySorter. It is somewhat of a hack. So it will be placed in cayenne-lifecycle and treated as an "extension".

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: