incubator-isis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Haywood (JIRA)" <>
Subject [jira] [Commented] (ISIS-234) Persistence by reachability of aggregated instances fails.
Date Tue, 26 Jun 2012 22:14:46 GMT


Dan Haywood commented on ISIS-234:

It seems that we only ever call remapAsPersistent for root adapters, never for aggregated
entities.  I suspect this means that the OIDs of these aggregated entities cannot be trusted
after the persist.

However, if the user does not do a flush (ie all persistence happens after the action is completed),
then this ought not be a problem, assuming that the objectstore is clever enough to know how
to persist an aggregated object.  I'm guessing that they could be, because - at least in theory
- they have the context of the root adapter being persisted.

If all the above is bogus, then the remapAsPersistent will probably need to be enhanced to
also walk the graph looking for aggregated entities that have a parent OID of the root adapter
initially being persisted.  (It either walks the graph, or just does a brute-force search
through the ObjectManager's maps).
> Persistence by reachability of aggregated instances fails.
> ----------------------------------------------------------
>                 Key: ISIS-234
>                 URL:
>             Project: Isis
>          Issue Type: Bug
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>             Fix For: 0.3.0-incubating
> as per

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