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

Bug 366744

Summary: canonical metamodel generation for Structure mapping is incorrect
Product: z_Archived Reporter: Karen Butzke <karenfbutzke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Karen Butzke CLA 2011-12-14 14:39:04 EST
I am using Eclipselink build eclipselink-2.4.0.v20111118-r10419

The canonical metamodel generated for a structure mapping appears to be incorrect. See the example below, notice that the CollectionAttribute has the generic type of Collection instead of Bar.

@Entity
public class Foo {
	@Id
	private int id;
	
	@Structure
	private Collection<Bar> bars;
}

@Generated(value="EclipseLink-2.4.0.v20111118-rNA", date="2011-12-14T12:16:54")
@StaticMetamodel(Foo.class)
public class Foo_ { 

    public static volatile SingularAttribute<Foo, Integer> id;
    public static volatile CollectionAttribute<Foo, Collection> bars;
}
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:32:51 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink