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

Bug 258516

Summary: [JPA 2.0] extend attribute overrides for nested embedded dot notation
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 Keywords: plan
Version: 2.1   
Target Milestone: 2.3 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard: JPA2.0
Bug Depends on:    
Bug Blocks: 291510    

Description Karen Butzke CLA 2008-12-11 13:48:48 EST
From the JPA spec:
The AttributeOverride annotation may be applied to an element collection containing instances of an embeddable class or to a map collection whose key and/or value is an embeddable class. When the AttributeOverride annotation is applied to a map, "key." or "value." must be used to prefix the name of the attribute that is being overridden in order to specify it as part of the map key or map value.

If the AttributeOverride annotation is not specified, the column is mapped the same as in the original mapping.
To override mappings at multiple levels of embedding, a dot (".") notation form must be used in the name element to indicate an attribute within an embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or property.
Comment 1 Karen Butzke CLA 2009-10-06 12:01:14 EDT
bug 258516 now covers the "key." or "value." for element and map collections.

This bug now is purely for support dot notation in Attribute Overrides for multiple levels of embedding.
Comment 2 Karen Butzke CLA 2009-10-08 17:00:25 EDT
dot-notation attribute overrides are now supported on 2.0 entities and embedded mappings