Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317331 - canonical metamodel gen for basic ElementCollection in orm.xml is incorrect
Summary: canonical metamodel gen for basic ElementCollection in orm.xml is incorrect
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.3.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 14:29 EDT by Karen Butzke CLA
Modified: 2010-07-20 10:55 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
proposed patch against head (1016 bytes, patch)
2010-06-18 16:17 EDT, Karen Butzke CLA
no flags Details | Diff

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