|
[
Permlink
| « Hide
]
Michael Watzek added a comment - 06/Dec/05 11:07 PM
The attached patch implements the comments above.
Just a few comments.
1. The line: lifecycleVerifyer = new LifecycleVerifier(result); should probably also change the name of the variable, to: lifecycleVerifier = new LifecycleVerifier(result); 2. The code to clear relationships for the deletePersistentAll problem doesn't appear to solve the issue. The issue is not relationships FROM the employees, it's relationships TO the employee that are represented by database constraints. + * If instances are employees, then all relationships are cleared. * If instances are employees, relationships to the employee are cleared. + employee.setDentalInsurance(null); employee.getDentalInsurance.setEmployee(null); + employee.setMedicalInsurance(null); employee.getMedicalInsurance.setEmployee(null); + employee.setDepartment(null); don't need anything + employee.setFundingDept(null); don't need anything + employee.setManager(null); don't need anything + employee.setMentor(null); employee.getMentor().setProtege(null); + employee.setHradvisor(null); don't need anything + employee.setReviewedProjects(new HashSet()); foreach Project p in employee.getReviewedProjects(){p.removeReviewer(employee);} + employee.setProjects(new HashSet()); foreach Project p in employee.getProjects() {p.removeMember(employee);} The second patch implements the comments above.
The second patch looks good.
The second patch has been checked in (revision 355060).
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||