Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366744 - canonical metamodel generation for Structure mapping is incorrect
Summary: canonical metamodel generation for Structure mapping is incorrect
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 14:39 EST by Karen Butzke CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (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 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