cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <christoph.herm...@tu-clausthal.de>
Subject Re: Need help with Cforms binding
Date Mon, 17 Jan 2005 19:31:05 GMT
Christoph Hermann schrieb:

Hello,

> > Inserting new Rights works fine, the problem is that when i change
> > a right the old value is deleted from the Rights Table instead of
> > only deleting the entry in the reference table.
> > Can anyone of you help me how out on how an m:n relationship should
> > be binded?
>
> My repository.xml (I use ojb/jdo) looks like this:

>                 <collection-descriptor name="rights"
> element-class-ref="papillon.Right" auto-retrieve="true"
> auto-update="link" auto-delete="link"
> indirection-table="rel_users_rights" otm-dependent="false">
>                         <fk-pointing-to-this-class
> column="users_id"/> <fk-pointing-to-element-class
> column="rights_id"/>
>                 </collection-descriptor>

Thanks to Tim Larson, the problem is solved.
Just for the ones interested (and the archive) here's the Solution:
In the collection-descriptor i had to add:
 collection-class="org.apache.ojb.broker.util.collections.ManageableArrayList"
Then the Problem was gone :-).

Christoph

Mime
View raw message