Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317723 - Clarify semantics of exclude-default-mappings
Summary: Clarify semantics of exclude-default-mappings
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/E...
Whiteboard:
Keywords:
Depends on:
Blocks: 251548
  Show dependency tree
 
Reported: 2010-06-23 11:59 EDT by Shaun Smith CLA
Modified: 2022-06-09 10:06 EDT (History)
1 user (show)

See Also:
shaun.smith: documentation+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shaun Smith CLA 2010-06-23 11:59:21 EDT
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.
Comment 1 Guy Pelletier CLA 2010-06-23 14:31:57 EDT
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.
Comment 2 Guy Pelletier CLA 2010-06-23 14:51:30 EDT
Sorry I meant

public void setName(String name) {
}
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:06:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink