Always the same question, I ask it few days ago !
First you need to configure your repository (with auto-delete="false"), i
think you've already do this.
Then use the ManagedArrayList as a collection class (by default it's a
RemovalAwareCollection)

like this (as an a attribute of the collection descriptor element):
collection-class=
 "org.apache.ojb.broker.util.collections.ManageableArrayList"


----- Original Message -----
From: "TINO SCH�LLHORN" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 27, 2003 3:57 PM
Subject: Deletion Bug!!!!!?


> Hi,
>
> I have a really weird problem and I don't if I am doing something wrong or
> if this is a bug of OJB.
>
> I have basically 2 classes: Person and Department. I defined a N:M
relation
> between those two.
>
> Now I want to remove a Department from a Person. But what happens is, that
> OJB is trying to delete ALL relations to other classes and is then
deleting
> the Department as well!!!
>
> Do I have to change my configuration? Or is this a bug?
>
> In hope for help.
>
> Tino
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to