Not sure if this belongs here or in Object Relational Mapping.
I'm working with the gui tools in netbeans to create a
java persistence project.
I have two entities, A and B which have a one to many relationship, A being the owner. I have all the relationship stuff taken care of and it works so far.
I have Jframe with a master table, displaying records from A. The table is bound to a list which gets its results from a persistence query from an entity manager. Then I have a detail table which is bound through the master table's selected element and displays the records from the child table, B.
Now I want to add a record to the child table, B. I understand how to do this on the master table, essentially adding a row to the list that the table is bound to. But my detail table is not bound to a list. Can anyone help me understand how to add a record to the child table?
Thanks.