dev@jaxb.java.net

XmlAccessType

From: jsmythe32 <jeremy_h_smyth_at_yahoo.com>
Date: Fri, 31 Jul 2009 05:35:28 -0700 (PDT)

Hi,
I am trying to use CXF and wsdl2java within maven to generate Java stubs
from my XML. After running wsdl2java, my generated java stubs all contain
XmlAccessType.FIELD, for example:

/**
 *
 * Holds the cuisine information.
 *
 *
 * <p>Java class for CuisineType complex type.
 *
 * <p>The following schema fragment specifies the expected content contained
within this class.
 *
 * <pre>
 * &lt;complexType name="CuisineType">
 * &lt;complexContent>
 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 * &lt;sequence>
 * &lt;element name="cuisineCode"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 * &lt;element name="cuisineDescription"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 * &lt;element name="translations"
type="{http://ihg.com/common/data/java/util/map/v1_0}MapType"
minOccurs="0"/>
 * &lt;/sequence>
 * &lt;/restriction>
 * &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CuisineType", propOrder = {
    "cuisineCode",
    "cuisineDescription",
    "translations"
})
public class CuisineType
    implements Serializable
{
...
}

I need the XmlAccessType to be set to PUBLIC_MEMBER (which is the default,
as far as I understand).

Does anyone know why the XmlAccessType is getting set to FIELD?

Thanks.
-- 
View this message in context: http://www.nabble.com/XmlAccessType-tp24755671p24755671.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.