You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Edson Carlos Ericksson Richter <ed...@mgrinformatica.com.br> on 2003/06/25 21:59:03 UTC

Still broken proxy m:n implementation

Hi!

I have downloaded rc4, and still not working.

My collection descriptor is:

    <collection-descriptor
         name="myList"
         element-class-ref="br.com.mgr.beans.MyBean"
        indirection-table="RL_TABLEA_TABLEB"
         proxy="true"
         auto-retrieve="true"
        auto-update="false"
         auto-delete="false">
       <fk-pointing-to-this-class column="CO_TABLEA"/>
       <fk-pointing-to-element-class column="CO_TABLEB"/>
    </collection-descriptor>

the bean is working with
org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldPropertyImpl.

The bean code for myList is like

public class MyBean implements MyInterface {
  private List data;
  public void setMyList( List newData ) { this.data = newData; }
  public List getMyList( ) { return this.data; }
}

Just it.

If I delete an element from data (ex: getMyList().remove( 0 ) ), the real
object is deleted (even with auto-update and auto-delete = "false").

Any tips? I'm still doing something wrong?

Thanks,

Edson Richter




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 25/6/2003