Community
Participate
Working Groups
EntityManagerJUnitTestSuite.internalTestManagedEmployeesMassInsertOrMerge does a bulk delete when it tries to clean up. This causes issues on MySQL because the Employees that are being removed have references to other Employees. MySQL does not figure out the order the rows need to be removed from the tables and this causes foreign key violations. The solution is to either do a bulk update of the foreign keys first, or to clean up the Employee.manager and Employee.managedEmployees pointers as the delete is occurring.
Created attachment 85293 [details] proposed patch
Checking in a fix. The bug and solution are described above. New tests: There are now new tests as this fixes existing failing tests. Tested with: JPA FullRegressionTestSuite on both Oracle and MySQL Reviewed by: Guy Pelletier
Adding target Milestone
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink