Skip to main content

Removing JAXBElement from mapped Java property

1 reply [Last post]
sethwhite
Offline
Joined: 2007-03-23

I have the following schema components which use a substitutiongroup

The property that gets generated for my list has this type

protected List> configObject;

Is there any way to get the compiler to generate something like

protected List configObject;

In other words, I want to get rid of the JAXBElement wrapper. This seems reasonable since I am not mapping more than one element to the same class.

Thanks,
Seth

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09

Simple binding mode (http://weblogs.java.net/blog/kohsuke/archive/2006/03/simple_and_bett.html) might be able to optimize that away.