Community
Participate
Working Groups
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
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.