Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324861 - Association override JoinTable info lost when adding another association override
Summary: Association override JoinTable info lost when adding another association over...
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Brian Vosburgh CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 11:24 EDT by Karen Butzke CLA
Modified: 2011-05-03 12:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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