4 Replies Latest reply: Jan 21, 2013 9:01 AM by zebonsoft-Oracle RSS

    Not post rows at entity object level

    zebonsoft-Oracle
      Hi,

      I'd like to stop some rows being committed at Entity Object Level based on existence of child rows.

      So say I have a parent EO and two child EOs, - if I'm missing a child, how do make sure none of the parent/child rows are posted/committed?

      I tried putting logic in postChanges() and prepareForDML() where I would either do a remove() or setNewRowState (STATUS_INITIALIZED).

      It does not seem to like it.

      Thanks