Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Annotations, Converters
-
Labels:None
-
JDK version and platform:Mac OS X 1.5.0_13
Description
Given:
class C
{ List<String> list; }when serializing, one gets:
<C>
<list>
<string>foo</string>
<string>bar</string>
</list>
</C>
One can use an implicit collection to alias the item type, but there is no way to keep the collection explicit yet still alias the item type, i.e.:
<C>
<list>
<name>foo</name>
<name>bar</name>
</list>
</C>
There should be a way to do this (both via code an an annotation).
Issue Links
- duplicates
-
XSTR-405 Collections & Maps with named parts and no class attribute
Closed as duplicate, see linked issue.