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/04/30 00:45:59 UTC

Mapping 1:N and Deleting

Hi! Environment: ojb-rc2, all classes is being proxied (dynamic). Load/Store
works fine.

I've created the following 1:N test:

public class X {
  List allY;

  public List getAllY( ) {
    return allY;
  }

  public void setAllY( List allY ) {
    this.allY = allY;
  }
}

public class Y {
    Integer value;
    public void setValue( Integer value ) {
      this.value = value;
    }

    public Integer getValue( ) {
      return this.value;
    }
}

The problem is: when I delete a Y element from "allY", and ask for store X
OJB isn't deleting the element from database. It's correct (I don't think
so)?

In the real testcase, Y is abstract, and I have two realizations (extents).

Thanks for any help.

Edson Richter




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 24/4/2003