Persist child and parent entity from OneToOne relationship with cascade in Spring JPA
I have two entities in my Spring API with a OneToOne relationship: Customer and CustomerAddress (this is just a simplified example of the problem). Each of these entities have their own tables. Here is the simplified definition of the tables and the entities: