Playing around with SpringData JPA, I have a problem with OneToMany JoinColumn
In the following code
return data for account is : AccountFund [acountId=1111, accountName=AccountCavanagh, funds=[Fund [fundId=111110, fundName=FundCav1]]]
Returning the data for both funds I have :
Fund [fundId=111110, fundName=FundCav1]
Fund [fundId=111111, fundName=FundCav2]
so the fund data is being added to the repo, but FundCav2 is not being added to the FundAccount set.
My Question is when I use a JoinColumn do I have to take the account out of repo and add it then save it.
With MappedBy the code above would add the FundCav" to the set, I would think using JoinColumn it would handle adding to the set the same way through the fundrepo
Thanks for any help