users@jaxb.java.net

Re: Use Enum Member Field as value in serializing?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 17 Jul 2009 08:12:35 +0200

Hi,

> However, I am wondering if there might be an even easier way to indicate
> that the ‘id’ field in the enum member is to be used to identify the enum in
> the XML?

Your own adapter plus @XmlJavaTypeAdapter on the enum class?

Bye.
/lexi