Both sides of the association need to be consistent. The following is clearly not constistent.
address.getEmployees().add(employee); address.getEmployees().add(employee2);
employee.setAddress(address3); // deliberately other address employee2.setAddress(address3);
Please open a new Jira if you are able to reproduce your issue with both sides of the association made consistent.
|