cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (Closed) (JIRA)" <>
Subject [jira] [Closed] (CAY-1616) Remove internal dependencies on deprecated ObjectContext.localObject
Date Sun, 22 Jan 2012 07:09:40 GMT


Andrus Adamchik closed CAY-1616.

       Resolution: Fixed
    Fix Version/s: 3.1M4
> Remove internal dependencies on deprecated ObjectContext.localObject
> --------------------------------------------------------------------
>                 Key: CAY-1616
>                 URL:
>             Project: Cayenne
>          Issue Type: Task
>          Components: Core Library
>    Affects Versions: 3.1M3
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.1M4
>         Attachments: cross-context-mapping-strategy-implementation.patch, cross-context-mapping-strategy-unit-tests.patch,
> CAY-1611 introduces user-facing API for obtaining context-local objects. Still Cayenne
internals keep using the old deprecated localObject(ObjectId, Persistent) method in many places.
We need to create a replacement. For a replacement I am looking at binding a new DI service
similar to this:
> CrossContextMappingStrategy
>    Persistent locateInContext(ObjectId id);
>    Persistent locateInChildContext(Persistent parentContextObject);
> From there it will all be about figuring a way to inject CrossContextMappingStrategy
in various places where 'localObject' is used currently. Also possibly BaseContext should
use the first method for its 'localObject' implementation.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message