9 Replies Latest reply on Jan 27, 2012 7:15 AM by Suganth

    trying to delete child's row overriding parent's doDML()

      I have to delete a row and possible childs when user invoke Delete operation button from jsf.
      I'm not sure if this is the best approach to do it, but I overrided a doDML method in entity implementation:
      protected void doDML(int operation, TransactionEvent e) {
         if (operation == DML_DELETE) {
            RowIterator ri = getChild();
            Row row;
            while ((row = ri.next()) != null) {
         super.doDML(operation, e);
      And it does not work: "ORA-02292: integrity constraint violated - child record found"
      (note: in this usecase I cannot use "Implement Cascade Delete" behavior of association)