| Summary: | [JPA 2.0] extend attribute overrides for nested embedded dot notation | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | General | Assignee: | 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 | ||
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. dot-notation attribute overrides are now supported on 2.0 entities and embedded mappings |
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.