Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368156 - [Validation] JPA supports only List, Set, Map, and Collection for collection mappings
Summary: [Validation] JPA supports only List, Set, Map, and Collection for collection ...
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 372904
  Show dependency tree
 
Reported: 2012-01-09 08:32 EST by Karen Butzke CLA
Modified: 2012-02-29 15:26 EST (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 2012-01-09 08:32:34 EST
JPA supports only List, Set, Map, and Collection types for collection mappings. 

EclipseLink supports other types if EAGER fetching is used. If LAZY fetching is used then EclipseLink needs to be able to weave.

see bug 367122
Comment 1 Karen Butzke CLA 2012-02-29 15:26:21 EST
These can exist on any collection mappings whether the attribute type is
defined by the java attribute or in the case of a VIRTUAL mapping defined by
the attribute-type:
1. The attribute type for a collection mapping must be java.util.Collection,
java.util.Set, java.util.List or java.util.Map
2. In implied attribute [attribute name], the attribute type for a collection
mapping must be java.util.Collection, java.util.Set, java.util.List or
java.util.Map

Currently the validation only looks that the attribute type implements
Collection, Set, List, or Map. I have opened bug 372904 for validation that
checks that the attribute type *is* Collection, Set, List, or Map.