Re: Flattened relationship Fault not set when creating new object

2012-06-28 Thread Andrus Adamchik
Hi Tad, yeah, overlapping relationships (multiple relationships over the same db-path) are not automatically synchronized on a local change. I.e. Cayenne thinks "Slot -> Shift -> Schedule" and "Slot -> Schedule" are two unrelated things. So this is a "feature". I've thought about it a few tim

Flattened relationship Fault not set when creating new object

2012-06-25 Thread Tad
Hi all, I have a setup with a relationship like the following: Slot (to one) Shift (to one) Schedule In the Modeler, I created a flattened relationship between Slot and Schedule by traversing the Shift relationship: In most cases, this works fine. Calling Slot.getSchedule() resolves a ToOneFa