Re: Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Andrus Adamchik
Ok, that much Cayenne does already, so I was surprised to hear that it didn't work for you. If you still think Cayenne doesn't handle it right, please provide the details and we'll look into it. Andrus On Dec 11, 2007, at 11:59 PM, Daniel Abrams wrote: My biggest concern was tripping the

Re: Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Daniel Abrams
My biggest concern was tripping the to-many fault, so if it avoids doing that, great. I guess avoiding tripping the to-one fault is nice, but not as serious a problem. When I referred to being "clever" I didn't actually mean avoid tripping the fault, I meant that if the fault was tripped intentio

Re: Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Andrus Adamchik
Yep, that's the manual API for people who really know what their are doing with their object graph :-) Andrus On Dec 11, 2007, at 10:24 PM, Peter Karich wrote: Hi Daniel, it seems to me that CayenneDataObject.addToManyTarget(String targetName, DataObject obj, boolean reverse); and Cay

Re: Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Andrus Adamchik
We are doing the "extra clever" thing for to-many, avoiding tripping the list on add. We don't for to-one. Is that the case you are talking about? (Address ->> State is a bit confusing... wouldn't a State have many Addresses? It appears to be the other way around in your example) Anyways, I

Re: Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Peter Karich
Hi Daniel, it seems to me that CayenneDataObject.addToManyTarget(String targetName, DataObject obj, boolean reverse); and CayenneDataObject.setToOneTarget(String targetName, DataObject obj, boolean reverse); could do the job for you. Am I right? Peter.

Suggestion: Don't Fault Relationship On Add

2007-12-11 Thread Daniel Abrams
Hello, I'm new to Cayenne but have a strong background with EOF. I downloaded Cayenne, and found one behavior that I dislike in EOF is actually somewhat worse (by default) with Cayenne, so I would like to propose a change to the default behavior. Imagine a regular one to many relationship Addres