On Sat, 30 Aug 2003, Andrus Adamchik wrote:
> Before doing a delete, explicitly remove object from the flattened
> relationship. This will delete a join record:
Okay. I am currently doing this:
List aList = a.getRelToBs();
for (int i = 0; i < aList.size(); i++){
a.removeFromRelToB(aList.get(i));
}
context.deleteObject(a);
context.commitChanges();
I just wondered if there was a more elegant solution. But, no problem! It
is working for me now :) Thanks!
- Tore.
This archive was generated by hypermail 2.0.0 : Mon Sep 01 2003 - 05:00:46 EDT