Hi,
 
I was able to get this to work after doing the following
1. Made update-conflict-mode and delete-conflict-mode to none
2. Changed use-query-cache to false
3. Removed the one-to-many and many-to-one metadata entries for both the 
Country and Region.
 
Not sure what the flip side of these settings are.
 
Also found the following flexray tutorial, 
->http://fleksray.org/flex_datamanagement_service_hibernate_en.html
 
Thanks,

--- On Tue, 8/5/08, Manu <[EMAIL PROTECTED]> wrote:

From: Manu <[EMAIL PROTECTED]>
Subject: [flexcoders] LCDS2.6 + Hibernate3 + Heirarchial objects - 
ds.deleteItem fails
To: flexcoders@yahoogroups.com
Date: Tuesday, August 5, 2008, 7:56 AM







Hi,
Am new to flex coding and have been able to get basic hibernate3 + lcds 
examples to work. However, am unable to progress with a delete operation on a 
non-trivial object graph with one-to-many and many-to-one relationship. Is 
there a tutorial that explains this. I have searched the internet and the 
examples I find do not go into heirarchial data with Hibernate. Any 
example/tutorial that you can point me to will be very helpful.
Eg..
Country has Regions (ArrayCollection) . I have 2 datagrids, one displaying 
countries and the other displaying regions. On change of country, I update the 
region datagrid using the following call
ds_region.fill( regionAC,"region-by-country",{countryId: selectedCountry. 
countryId} );
When I try to delete a selectedRegion with 
ds_region.deleteIte m(dg_region. selectedItem as StRegion);
I get a conflict from the server. I looked at the stacktrace and it indicates 
that the region I am trying to delete is still in the graph of the Country 
object on the server. How do I get this to work?
Thanks 














      

Reply via email to