Hi Malcolm,
You can traverse an object graph using ClassDescriptor with a custom
PropertyVisitor. For instance DataContext.registerNewObject(..)
implements a similar algorithm for the NEW objects.
Andrus
On Aug 17, 2006, at 7:33 AM, Malcolm Edgar wrote:
> Hi All,
>
> I am currently having problems integrating Flex Data Services with
> Cayenne.
>
> With the Flex 2 design patterns, I have a corresponding ActionScript
> DataObject on the client, with is then converted into a Cayenne
> DataObject using reflection by some Flex serialization libraries.
>
> Creating new objects works fine, but when I try and update existing
> objects I run into troubles. Flex will provide me with an graph of
> Cayenne DataObjects which have an ID, and a corresponding record in
> the database, but are not registered with the DataContext.
>
> Do you have any ideas how I could work around this issue. I dont mind
> hacking the Cayenne library to address this issue.
>
> regards Malcolm Edgar
>
This archive was generated by hypermail 2.0.0 : Thu Aug 17 2006 - 09:43:12 EDT