cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] [Created] (CAY-1616) Remove internal dependencies on deprecated ObjectContext.localObject
Date Mon, 12 Sep 2011 06:53:08 GMT
Remove internal dependencies on deprecated ObjectContext.localObject

                 Key: CAY-1616
             Project: Cayenne
          Issue Type: Task
          Components: Core Library
    Affects Versions: 3.1M3
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik

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:

   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.
For more information on JIRA, see:


View raw message