Castor and collections: mapping file needed for unmarshalling?

C

Chris

I am using Castor to marshal and unmharshal some objects.

I have an object that has a List of strings.
I can marshal it without using a mapping file.
However, when I try to unmarshal it without using a mapping file,
I get an error that the list elements occur more than once.
If I use a mapping file and indicate that the data member is
a collection, it unmarshals without error.

My question is:
Am I *required* to provide a mapping file whenever the class
to be marshalled/unmarshalled contains a collection of some sort,
or can I configure Castor to implicity recognize/allow collections
either programmatically or through its properties file?

Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top