How to save parent and child data simultaneously in mysql

Hi,

To save the child table in the mysql first it needs to create the id in the parent table, So I need to save the parent table first, to save the child table. How Can I achieve this with one click in cuba.

Can anyone help me here.

Thanks!!

Hi,

Look at this document: Editing Composite Entities

And sample project.