Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Development/JPA 2.0/new collection mappings"

(New page: = Element Collections = JPA 2.0 Root | [http://bugs.eclipse.org/248293 Enhancement Request] ==Issue Summary== ==General Solution== ==Work Required...)
 
Line 3: Line 3:
 
[http://bugs.eclipse.org/248293 Enhancement Request]
 
[http://bugs.eclipse.org/248293 Enhancement Request]
 
==Issue Summary==
 
==Issue Summary==
 +
JPA 2.0 introduces support for collections of Embeddables and primitives through the @ElementCollection annotation.  Support for ElementCollection of primitives will be easily supported through our BasicCollection and BasicMap support and will only require annotation processing updates.  Support for lists of Embeddables should be supportable through the AggregateCollectionMapping.  Support for Maps of Embeddables will be more difficult and will require completion of the Map Collections support feature.
  
==General Solution==
+
See section 2.1.5 for details.
  
 
==Work Required==
 
==Work Required==
 
# Develop model for testing
 
# Develop model for testing
#: approx 4 days - should include all permutations of PK combinations. (ie derived IdClass in EmbeddedId)
+
#: approx 2 days   
# Update Processing
+
# Update Annotation Processing
#: approx 5 days - processing @Id placement
+
#: approx 2 days - processing @ElementCollection annotation / and XML for primitive
#: approx 4 days - processing @MappedById and support populating EmbeddedIds
+
#: approx 5 days - processing @ElementCollection annotation / and XML for Embeddables
#: approx 3 days - processing derived IdClass in EmbeddedId
+
#: approx 5 days - integrating Map collections support for Embeddables

Revision as of 15:03, 24 September 2008

Element Collections

JPA 2.0 Root | Enhancement Request

Issue Summary

JPA 2.0 introduces support for collections of Embeddables and primitives through the @ElementCollection annotation. Support for ElementCollection of primitives will be easily supported through our BasicCollection and BasicMap support and will only require annotation processing updates. Support for lists of Embeddables should be supportable through the AggregateCollectionMapping. Support for Maps of Embeddables will be more difficult and will require completion of the Map Collections support feature.

See section 2.1.5 for details.

Work Required

  1. Develop model for testing
    approx 2 days
  2. Update Annotation Processing
    approx 2 days - processing @ElementCollection annotation / and XML for primitive
    approx 5 days - processing @ElementCollection annotation / and XML for Embeddables
    approx 5 days - integrating Map collections support for Embeddables

Back to the top