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

Bug 367342

Summary: default mapping does not work with new JPA 2.0 mappings
Product: z_Archived Reporter: James Sutherland <jamesssss>
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 7   
Whiteboard:

Description James Sutherland CLA 2011-12-21 10:45:47 EST
Default mapping does not default any JPA 2.0 mapping types.
These should be defaulted correctly the same as JPA 1.0 mapping types.

- List/Set<EmbeddableType> - should default to ElementCollection (current defaults to Basic)
- List/Set<BasicType> - should default to ElementCollection (current defaults to Basic)
- Map<BasicType, EmbeddableType> - ElementCollection with MapKeyColumn (current defaults to Basic)
- Map<EmbeddableType, EmbeddableType> - ElementCollection with MapKeyClass (current defaults to Basic)
- Map<EntityType, EmbeddableType> - ElementCollection with MapKeyJoinColumn (current defaults to Basic)
- Map<BasicType, BasicType> - ElementCollection with MapKeyColumn (current defaults to Basic)
- Map<EmbeddableType, BasicType> - ElementCollection with MapKeyClass (current defaults to Basic)
- Map<EntityType, BasicType> - ElementCollection with MapKeyJoinColumn (current defaults to Basic)
- Map<BasicType, EntityType> - OneToMany with MapKeyColumn (current defaults to OneToMany with Id as MapKey, which will may fail... but might work)
- Map<EmbeddableType, EntityType> - OneToMany with MapKeyClass (current defaults to OneToMany with Id as MapKey, which will fail)
- Map<EntityType, EntityType> - OneToMany with MapKeyJoinColumn (current defaults to OneToMany with Id as MapKey, which will fail)
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:14:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:27:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink