Bug 483373 - Add namespace to @XmlVariableNode
Summary: Add namespace to @XmlVariableNode
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 07:15 EST by Jaromir Stradej CLA
Modified: 2022-06-09 10:14 EDT (History)
0 users

See Also:


Attachments
Simple testcase for XmlVariableNode (2.96 KB, application/octet-stream)
2015-12-01 07:15 EST, Jaromir Stradej CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Stradej CLA 2015-12-01 07:15:48 EST
Created attachment 258389 [details]
Simple testcase for XmlVariableNode

Annotation @XmlVariableNode does not allow used namespace in final element name.

Example XML:
<root>
   <A>1</A>
   <B>2</B>
</root>

I require something like:
<root xmlns:ns0="http://example">
   <ns0:A>1</ns0:A>
   <ns0:B>2</ns0:B>
</root>

In java is used:
        public static class AdaptedMap {
            @XmlVariableNode("key")
            List<AdaptedEntry> entries = new ArrayList<AdaptedEntry>();
        }


It could be used:
        public static class AdaptedMap {
            @XmlVariableNode(name="key", namespace="http://example")
            List<AdaptedEntry> entries = new ArrayList<AdaptedEntry>();
        }
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:10:39 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:14:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink