| Summary: | Association override JoinTable info lost when adding another association override | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | General | Assignee: | Brian Vosburgh <brian.vosburgh> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | jolene.moffitt, neil.hauge |
| Version: | 3.0 | ||
| Target Milestone: | 3.0 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
This problem no longer exists. I'm going to assume Brian's large changes in M6 fixed this issue and mark it as resolved in M6 Verified in Build I-3.3.0-20110414085808 Verified The existing association override does not lose all of it's join table settings when the new association override is added. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_M6 |
Given the following example, select the Employee entity and view the JPA Details -> Attribute Overrides section. Select the address association override and check the 'Override default' check box. The existing association override loses all of it's join table settings when the new association override is added. @Entity @AssociationOverride( name="phoneNumbers", joinTable=@JoinTable( name="EMPPHONES", joinColumns={@JoinColumn(name="EMP")}, inverseJoinColumns={@JoinColumn(name="PHONE")})) public class Employee extends AbstractEmployee {} @MappedSuperclass public class AbstractEmployee { @Id int id; @ManyToOne Address address; // Unidirectional @ManyToMany(targetEntity=PhoneNumber.class) List phoneNumbers; }