I have a flattened relationship Member *-> (member_address) -> Address.
Each member can have multiple addresses. Member and Address are
objects, but member_address is just a data entity with no object
entity. The Member relationship "addresses" is a one-to-many
relationship with address "through" the member_address by using the
DbRelationship memberAddresses.address.
When I try
member.addToAddresses(address);
it fails with the error message
Exception in thread "main"
org.objectstyle.cayenne.CayenneRuntimeException: [v.1.0.4 December 14
2003] Cannot modify (add to) the read-only relationship addresses
What am I doing wrong?
Jim
-- Jim Menard, jim..o.com, http://www.io.com/~jimm "I have a red sign on my door. It says 'If this sign is blue, you're moving too fast.'" -- pyros on slashdot
This archive was generated by hypermail 2.0.0 : Wed Dec 17 2003 - 15:06:13 EST