| Summary: | Clarify semantics of exclude-default-mappings | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Shaun Smith <shaun.smith> |
| Component: | Eclipselink | Assignee: | Project Inbox <eclipselink.documentation-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | guy.pelletier |
| Version: | unspecified | Flags: | shaun.smith:
documentation+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://wiki.eclipse.org/EclipseLink/Examples/JPA/EclipseLink-ORM.XML#.3Cexclude-default-mappings.2F.3E | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 251548 | ||
|
Description
Shaun Smith
Exclude-default-mappings only applies to those fields and methods that do specify any annotations or xml whatsoever.
Example:
public String getName() {
}
public String setName() {
}
Would qualify as a default mapping since it respects all the characteristics of a persistent attribute (even though no annotations whatsoever are specified) and therefore is mapped.
As soon as you specify an annotaton or add it to xml it is no longer considered a default mapping and all JPA defaults (column name etc) apply.
Sorry I meant
public void setName(String name) {
}
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |