This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 258528 - [JPA 2.0] mapped-by dot notation support for embeddables
Summary: [JPA 2.0] mapped-by dot notation support for embeddables
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 2.3 M3   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard: JPA2.0
Keywords: plan
Depends on:
Blocks:
 
Reported: 2008-12-11 14:05 EST by Karen Butzke CLA
Modified: 2010-01-21 12:57 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2008-12-11 14:05:54 EST
1-1, m-m, and 1-m all support mappedBy, we now must add dot notation support for the case where the mapped by is in an embedded.

@Entity
public class Employee {
  @Id int id;
  @Embedded JobInfo jobInfo;
...
}
@Embeddable
public class JobInfo {
  String jobDescription;
  @ManyToOne ProgramManager pm; // Bidirectional
}
@Entity
public class ProgramManager {
  @Id int id;
  @OneToMany(mappedBy="jobInfo.pm")
  Collection<Employee> manages;
}
Comment 1 Karen Butzke CLA 2009-10-05 11:29:25 EDT
fixed in M3