I have two entities (Ent1 e Ent2) linked together with ASSOCIATION ONE_TO_ONE. I have first Ent1Edit where ther is a button that opens the Ent2Edit. When I create the Ent2Edit and save the Ent2 from its Edit, automatically the system create the Ent1 too. So when I try to save the Ent1 in the main edit Ent1Edit the system returns the error of PRIMARY_KEY in the Ent1, because it was already created before when I saved the related entity Ent2.
How can I resolve this issue?
Thank you very much in advance.