Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335697 - Add support for default XmlElement attribute mappings
Summary: Add support for default XmlElement attribute mappings
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 10:41 EST by Karen Butzke CLA
Modified: 2011-03-02 15:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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