// has reference to this object. so, how to deal with that?
if (_fieldMolder.isDependent()) {
ArrayList alist = (ArrayList) field;
if (field != null) {
for (int j = 0; j < alist.size(); j++) {
Identity fid = (Identity) alist.get(j);
Object fetched = null;
if (fid != null) {
fetched = tx.fetch(fieldClassMolder, fid, null);
if (fetched != null) {
tx.delete(fetched);
}
}
}
Iterator itor = ClassMolderHelper.getIterator(_fieldMolder
.getValue(object, tx.getClassLoader()));
while (itor.hasNext()) {
Object fobject = itor.next();
if (fobject != null && tx.isPersistent(fobject)) {
tx.delete(fobject);
}
}
}
} else {
if (field != null) {
ArrayList alist = (ArrayList) field;
for (int j = 0; j < alist.size(); j++) {
Identity fid = (Identity) alist.get(j);
Object fetched = null;
if (fid != null) {
fetched = tx.fetch(fieldClassMolder, fid, null);
if (fetched != null) {
fieldClassMolder.removeRelation(tx, fetched,