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

Bug 324861

Summary: Association override JoinTable info lost when adding another association override
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: 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:

Description Karen Butzke CLA 2010-09-09 11:24:54 EDT
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;
}
Comment 1 Karen Butzke CLA 2011-03-10 08:36:55 EST
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
Comment 2 Jolene Moffitt CLA 2011-05-03 12:02:37 EDT
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