[Logo]
Forums Register Login
Many to many be able to save from both side
I use spring boot with spring-data-jpa and hibernate implementation

I have a many to many relations





Actually if I take a person, add some address and save... person and address are saved.

I would like to be able to do also from the other side: address, add person and save

tried to put on both cascade = {CascadeType.MERGE, CascadeType.PERSIST} on both side, but it don't work
I am going to test your electrical conductivity with this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA


This thread has been viewed 178 times.

All times above are in ranch (not your local) time.
The current ranch time is
Aug 19, 2018 06:10:25.