Community
Participate
Working Groups
The semantics of exclude-default-mappings are not entirely explained. Do defaults still apply for attributes that are mapped when exclude-default-mappings is specified. For example, if a field is mapped as basic but no column is provided then is the column name defaulted or must it be explicitly provided? Dali support for exclude-default-mappings in Bug 251548 needs to correctly reflect the semantics.
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