cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-1553) cayenne-lifecycle: @SortWeight annotation
Date Fri, 25 Mar 2011 13:44:05 GMT

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

Andrus Adamchik closed CAY-1553.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M3

> cayenne-lifecycle: @SortWeight annotation 
> ------------------------------------------
>
>                 Key: CAY-1553
>                 URL: https://issues.apache.org/jira/browse/CAY-1553
>             Project: Cayenne
>          Issue Type: Task
>          Components: Lifecycle Extensions
>    Affects Versions: 3.1M2
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M3
>
>
> 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".

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message