I am getting the following error
I know what is causing the problem, but not how to fix it.
i have the following manyToMany mapping
Bank <-> Account <-> Fund
I have a Bank BankId 123 that bank has Account accountId 1234 with fund fundId 12345
If I add to Bank BankId 123 a new Account accountId 1235 but with with fund fundId 12345
It will fall over
It wont allow me to add an existing fund, from one account to another account, if both accouts are mapped to the same Bank. I am using org.springframework.data.jpa.repository.JpaRepository; save() for my entity
The Entities are
Thanks for any help in a work around.