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

Bug 335697

Summary: Add support for default XmlElement attribute mappings
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JAXBAssignee: Karen Butzke <karenfbutzke>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Karen Butzke CLA 2011-01-28 10:41:23 EST

    
Comment 1 Karen Butzke CLA 2011-02-02 17:05:50 EST
From the spec section 8.12.5.1:

A single valued property or field must be mapped with the following default
mapping annotation : XmlElement

A property or field with a collection type must be mapped by with the following
default mapping annotation:
• if the property or field is annotated with @XmlList, then the default
mapping annotation is:
@XmlElement
• otherwise the default mapping annotation is:
@XmlElements({ @XmlElement(nillable=true)})
Comment 2 Karen Butzke CLA 2011-03-02 15:27:13 EST
I have fixed this for M6, just waiting for some feedback from Blaise to make sure there aren't any cases I have missed. Will assume this is completed correctly for M6