The search function on the list doesn't work I'm probably asking a
question that's been asked before...
I am trying to Marshall a Java 5 enum that is multiple custom fields
like:
enum MyEnum{
VALUE1("name", "message", "code")
String getName...
String getMessage...
..
}
How do I write a Castor mapping file for this? I'm trying to write
<field name="name"... > but it doesn't work. I understand I cant
unmarshall which is fine, I just want to be able to marshall the enum
with its fields. Currently I'm only able to get it like
<myenum>VALUE1</mayenum>
Any help would be appreciated. (I know the workaround but I don't want
to unnecessarily create a bean which will basically be the same as my
enum).
Thanks
Rahul