On Sep 2, 2004, at 4:10 AM, Lindsay Steele wrote:
> I don't think it is referential integrity. It is a one-to-one were
> sometimes the other side of the relationship may not exist.
...
> Catching the exception is a bit more code but not really a problem and
> seems to work well as when there is not a record found I want to
> replace
> it with other data anyway.
Optional to-one are totally ok. Cayenne handles most of them well, as
long as "to Dep PK" is checked for one of the sides of DbRelationship.
If "to Dep PK" doesn't fix the problem, I still urge you to open a bug
report. Catching an exception is a good workaround, but we can do
better. Make sure you attach your DataMap file to the report.
Thanks
Andrus
This archive was generated by hypermail 2.0.0 : Thu Sep 02 2004 - 09:57:48 EDT