I tried to save a child object when the parent is not mandatory to save with bi-directional one-to-many relationship enabled.
My example looks like
I need to save address only and with a foreign key constraint of company_id in address and not nullable.
How the request json should be and how to achieve it with Spring Boot + Hibernate?
If I need to add some extra step to make it work, please help me.