I have two objects, BillAccount and Member. Member has a FK to
BillAccount. When I create both objects and try to commit them, I see a
foreign key constraint violation. It's because Cayenne is trying to
save the Member first, then the BillAccount. (BillAccount has no FK
back to member.)
There are a few other objects involved; I'm going to write a test that
just tries to create these two.
I thought Cayenne was supposed to save the BillAccount first for this
very reason. Am I doing something wrong? What can I do, aside from
remove the FK constraints from the database?
Should I submit a bug report?
Jim
-- Jim Menard, jim..o.com, http://www.io.com/~jimm/ "You guys have made me the happiest giant talking worm in the world." -- Earthworm Jim
This archive was generated by hypermail 2.0.0 : Thu Jan 29 2004 - 11:24:09 EST