Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

master-child- parent key not found

851178May 5 2011 — edited Dec 15 2011
Hi all,

JDev Ver 11.1.1.3.0

isuue:
while saving the records i am getting constraint violated-parent key not found error

use case:
I am using master child relationship with two viewObjects, say book_master and bookchild.
In my page i used master as Form and detail as table.
I am creating new records in both master and detail, dbsequence is executed got master unique id, and i have assigned the newly created id in the detail table and filled all the fields,
While committing i am getting Constraint violated parent key not found error..

I think the master entity in must commit before child do..

How to solve this issue ? Give any idea ?

Thanks,
Gopinath
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2012
Added on May 5 2011
10 comments
2,209 views