You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2010/03/03 21:32:27 UTC
[jira] Updated: (CAY-477) Support for preordered relationships
[ https://issues.apache.org/jira/browse/CAY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Razumovsky updated CAY-477:
----------------------------------
Attachment: 477-proto.patch
Here's prototype of how I see the issue.
Orderings can be added to objRelationship, and they are relative to *target* entity (e.g. to Painting for "Artist.paintingArray" relationship). For relationships with orderings, resolving returns ordered list.
Some things to be done:
(1) Collection methods, like add() addAll() should keep the order.
(2) Map and Set support
For (1) and (2) we'll need to introduce different underlying implementation of PersistentObject*
(3) Modeler support
(4) Not sure of this --> set() method of collections and changing the object in ordered collection should somehow keep order. This is unseen truth for maps but will be a pain for lists. Do we need this??
> Support for preordered relationships
> ------------------------------------
>
> Key: CAY-477
> URL: https://issues.apache.org/jira/browse/CAY-477
> Project: Cayenne
> Issue Type: Task
> Components: Core Library, Modeler
> Affects Versions: Undefined future
> Reporter: Andrus Adamchik
> Fix For: Undefined future
>
> Attachments: 477-proto.patch
>
>
> This is already supported on the client (PersistentObjectList). Need to either add support for it to ToManyList or migrate DataContext to use PersistentObjectList. In any event Modeler support is needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.