I'm back with another MOXy question. Is it possible to map an array of primitives to a single node? I try to use XMLCompositeDirectCollectionMapping, but that only seems to work with lists, not arrays. Also, I see there's an ArrayMapping, but no XMLArrayMapping.
Thank you for the response Blaise, but I find your method does not work. Through debugging I discovered that the converter is applied to each element in the collection, rather than the collection itself.
If I use an array, the mapping tries to create an iterator and casts the value to a Collection, but since the object is an array it fails and throws an exception.
Is there another way?
EDIT: Nevermind. Found I could use
with the XMLDirectCollectionMapping and no converter.
EDIT: Scratch that. I had introduced a Vector which I had forgotten about. Mapping to arrays still doesn't work