| Summary: | orphan-removal on 1-1 is not defaulting in the 2.1 eclipselink-orm.xml | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | neil.hauge | ||||
| Version: | 2.3 | Flags: | neil.hauge:
review+
|
||||
| Target Milestone: | 2.3.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Set metadata-complete to true and cascade settings are incorrectly defaulting in to the orm.xml and eclipselink-orm.xml relationship mappings The cascade issue is only for 1-1 mappings and you have to have an EclipseLink platform to see it. Created attachment 172149 [details]
proposed patch against head
This patch includes a lot of new tests along with the fixes
resolved in HEAD for 2.3.1 maintenance verified fixed in build wtp-sdk-M-3.2.1-20100717062943 |
Given the following java class, add the EmployeeHistory entity to a 2.1 eclipselink-orm.xml file. Select the virtual employee 1-1 and notice that the orphan removal checkbox displays false. This is working in a 2.0 orm.xml file. @Entity public class EmployeeHistory { @OneToOne(orphanRemoval = true) private Employee employee; }