This discussion is archived
6 Replies Latest reply: Jul 22, 2013 6:34 AM by spcornell RSS

How to insert row into table from an Entity class

spcornell Newbie
Currently Being Moderated

I am using JDeveloper 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.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points