cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Flex & Cayenne
Date Thu, 17 Aug 2006 13:42:39 GMT
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.


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

View raw message