| Summary: | [EclipseLink] default 1-1 and 1-m mappings | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | neil.hauge |
| Version: | 2.0 | Keywords: | plan |
| Target Milestone: | 2.1 M3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | EclipseLink | ||
setting this to 2.1M3 in case I have time to look at it. added default 1-1 and 1-m support to the EclipseLink platform for 2.1M3 verified in current code |
Eclipselink handles defaulting 1-1 and 1-m mappings, this is beyond the JPA spec defaults for basic and embedded mappings. We can support these defaults in the EclipseLink platform. @Entity public class Employee { private Address address; { @Entity public class Address { private String street; } Employee.address should default to 1-1, even if Address is Serializable @Entity public class Employee { private Collection<Address> addresses; { @Entity public class Address { private String street; } Employee.address should default to 1-m, even if Address is Serializable