You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/03/25 14:44:05 UTC
[jira] [Updated] (CAY-1553) cayenne-lifecycle: @SortWeight
annotation
[ https://issues.apache.org/jira/browse/CAY-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik updated CAY-1553:
---------------------------------
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".
was:
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(1.1)
@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".
> 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