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

Bug 362205

Summary: [EclipseLink] Add @ExcludeDefaultMappings annotation support
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P2 CC: neil.hauge
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: EclipseLink

Description Karen Butzke CLA 2011-10-27 10:45:23 EDT
@ExcludeDefaultMappings support was added in EclipseLink 2.2
Comment 1 Karen Butzke CLA 2012-03-19 14:51:32 EDT
Not supporting this means we have incorrect validation errors.

@Entity
@ExcludeDefaultMappings
public class Employee {
    @Id
    private int id;	
    private String name;//validation error that column "name" cannot be resolved
}


Also need to be careful supporting this because EclipseLink has some defaulting rules that we don't use. This mapping would be a Basic mapping and would not be excluded with ExcludeDefaultMappings.
@Lob
private String name;
Comment 2 Karen Butzke CLA 2012-03-22 09:47:38 EDT
bug 251548 - corresponding xml element