Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 237657

Summary: [EclipseLink] default 1-1 and 1-m mappings
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 2.0Keywords: plan
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard: EclipseLink

Description Karen Butzke CLA 2008-06-18 12:30:52 EDT
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
Comment 1 Karen Butzke CLA 2008-10-09 11:44:42 EDT
setting this to 2.1M3 in case I have time to look at it.
Comment 2 Karen Butzke CLA 2008-10-13 12:18:16 EDT
added default 1-1 and 1-m support to the EclipseLink platform for 2.1M3
Comment 3 Karen Butzke CLA 2008-11-20 11:50:09 EST
verified in current code