I think I got little bit idea how we can add the code there. I did something like this
_persistence.delete(tx.getConnection(oid.getMolder().getLockEngine()), ids); // Original statement inside delete method of ClassMolder
//After that I did something like this
ClassMolder extended = this.getExtends();
// Must delete record in parent table last.
// All other dependents have been deleted before.
if (extended != null)
Is that fine? If it is, then I will make a patch today so that you can review the changes.