Hello all,
I have two classes, Record and Collocation, that should have a many-to-many
relation, like the one in the picture.
Class diagram
Each class is backed by a corresponding DbEntity (records and collections).
These entities contains just one attribute: a primary key VARCHAR[64] one
called uid, reflected into the corresponding class as the uid String
attribute.
What I would like is the situation depicted, where when I add a Collocation
to a Record using the addToCollocations method, the corresponding list of
Records in the Collocation object is updated automatically.
Being ignorant about DBs and their management (this is why I'm using
Cayenne), I don't understand if it is possible and how to realize it with
Cayenne (and its modeler): I need to add some attributes to the DbEntities
(which one?), I need to add helper tables (whicwh one?), Which kind of
relation I need to set up...?
Thanks in advance for any help.
Claudio
Multimedia <http://www.acsys.it/> Division
Claudio Rosati
Project Manager Advanced Computer Systems S.p.A.
via Della Bufalotta 378
00139 Roma, RM
Italy
claudio.rosat..csys.it
tel:
fax: +39 06 8709 0516
+39 06 8720 1502
<http://www.plaxo.com/signature> Signature powered by Plaxo
<http://www.plaxo.com/signature> Want a signature like this?
<https://www.plaxo.com/add_me?u=4295038861&v0=140354&k0=586510396> Add me
to your address book...
This archive was generated by hypermail 2.0.0 : Thu Jul 01 2004 - 09:02:43 EDT