Hi,

the autodelte flag is set to false. Here is my complete collectin-descriptor

<!-- N:M - Relation Company-Person -->

<collection-descriptor

name="persons"

element-class-ref="kos.intranet2.om.Person"

auto-retrieve="true"

auto-update="true"

auto-delete="false"

proxy="true"

indirection-table="Company_Person">


<fk-pointing-to-this-class column="COPE_Company"/>

<fk-pointing-to-element-class column="COPE_Person"/>

</collection-descriptor>



Any ideas?

Tino

----- Original Message ----- 
From: "balza" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.ojb.user
Sent: Thursday, November 27, 2003 4:06 PM
Subject: Re:Deletion Bug!!!!!?


autodelete flag in your xml mapping file is true or false?
an example:
...
<reference-descriptor name="country" class-ref="allibo.logistic.Country"
auto-retrieve="true" auto-update="true" auto-delete="true" >
...

> 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