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

Bug 317331

Summary: canonical metamodel gen for basic ElementCollection in orm.xml is incorrect
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 2.3Flags: neil.hauge: review+
Target Milestone: 2.3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
proposed patch against head none

Description Karen Butzke CLA 2010-06-18 14:29:24 EDT
Create the following java entity and add it to an orm.xml file.
Set up canonical metamodel generation for the project.
The generated metamodel is incorrect:

public static volatile CollectionAttribute<Employee, Object> foos;
should be:
public static volatile CollectionAttribute<Employee, String> foos;


@Entity
public class Employee {
	@Id
	private int id;
	
	@ElementCollection
	private Collection<String> foos;
}
Comment 1 Karen Butzke CLA 2010-06-18 16:17:25 EDT
Created attachment 172254 [details]
proposed patch against head
Comment 2 Karen Butzke CLA 2010-06-24 14:52:34 EDT
resolved in HEAD for 2.3.1 maintenance
Comment 3 Karen Butzke CLA 2010-07-20 10:55:09 EDT
verified fixed in build wtp-sdk-M-3.2.1-20100717062943