cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Huss (JIRA)" <>
Subject [jira] [Commented] (CAY-1902) Implement resolving Db paths for DataObjects
Date Wed, 29 Apr 2015 22:21:10 GMT


John Huss commented on CAY-1902:

I updated the patch, but I have some holes in my understanding of Cayenne internals maybe
you can help with.

Doesn't the cached snapshot HAVE to exist in order for optimistic locking to work?  Is the
original snapshot for locking stored somewhere else?

If I remove the snapshot by calling objectStore.unregisterNode then the object becomes "transient"
and has no objectId so I can't evaluate db paths on it.  So it seems like if the snapshot
is not in the cache then you can't evaluate db path expressions against it in memory.

> Implement resolving Db paths for DataObjects
> --------------------------------------------
>                 Key: CAY-1902
>                 URL:
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 4.0.M2
>            Reporter: John Huss
>            Assignee: John Huss
>            Priority: Minor
>             Fix For: Undefined future
>         Attachments: 0001-CAY-1902-Implement-resolving-Db-paths-for-DataObject.patch,
> Expressions using db paths don't support in-memory evaluation against DataObjects (there
is a TODO in the code).

This message was sent by Atlassian JIRA

View raw message