AW: [OJB-developers] deleting objects from an m:n association
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-02-25 14:27:12
|
Hi Ulrich, > -----Urspr=FCngliche Nachricht----- > Von: Ulrich Buettgen [mailto:ubu...@ya...] > Gesendet: Montag, 25. Februar 2002 15:18 > An: obj...@li... > Betreff: [OJB-developers] deleting objects from an m:n association >=20 >=20 > Hi all, >=20 > I'm looking for a way to delete objects from an m:n association. The > delete Testcase in MtoNmapping.java only shows how to delete=20 > a project in > a person<->project association but not how to delete the association > itself (all persons and all project should remain in the database). >=20 > Any ideas or hints? >=20 If you are using m:n mappings that are transparently mapped, you can't access the association as a separate entity. That's why it is called transparent. But you can of course define an additional class MyAssociation mapped = on the M:N intermediary table.=20 having this class you may add or delete association entities programmatically! There is a sample for an m:n association class test.ojb.broker.Role. HTH,=20 Thomas > TIA >=20 > Uli >=20 >=20 > __________________________________________________________________ >=20 > Gesendet von Yahoo! Mail - http://mail.yahoo.de > Ihre E-Mail noch individueller? - http://domains.yahoo.de >=20 > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers >=20 |