6 Replies Latest reply: Jul 22, 2013 8:34 AM by spcornell RSS

    How to insert row into table from an Entity class

    spcornell

      I am using JDeveloper 11.1.2.3.0 using ADF.  I would like to insert a row into Table B when Table A is being inserted into the database based on a value selected by end user.  I could do this in a database trigger but I would like to try in ADF. I think the best place to do it would be in the entity class  based on Table A . I could override the doDML method and check for DML_INSERT

      and do the insert of table B there, but I don't know the  best way to accomplish this.  I assume I want to avoid using a SQL "Insert"  statement. I am new to ADF and it can be difficult to convey

      a question using the proper terminology. I hope this makes sense.