Re: relationship query and entity qualifier

2007-11-26 Thread Marcin Skladaniec
Hi I have worked around this problem by inverting the relationship (it was one-to-one) and putting the fk on the other side. The problem I have now is that there is no simple way of querying for objects with this relationship set. The schema I'm using has a Contact related to Student and/

Re: relationship query and entity qualifier

2007-11-26 Thread Andrus Adamchik
Hi Marcin, Probably a bug in faulting... The analysis below is from memory. I haven't checked the code to confirm it :-). Cayenne always assumes that if a given object contains an FK to a target object (non- flattened to-one), that a target object exists. This can potentially save a trip t

relationship query and entity qualifier

2007-11-25 Thread Marcin Skladaniec
Hi I have problems with entity qualifier and relationships. I defined "isDeleted" column in few tables, and when the record is deleted is not really removed from the database. In cayenne modeller I specified a entity qualifier to not include those deleted objects in any query, but I found