Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367342 - default mapping does not work with new JPA 2.0 mappings
Summary: default mapping does not work with new JPA 2.0 mappings
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: 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-21 10:45 EST by James Sutherland CLA
Modified: 2022-06-09 10:27 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 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