users@jaxb.java.net

Set methods for collections

From: Lucas Jordan <lucasjordan_at_softhome.net>
Date: Fri, 03 Feb 2006 11:12:59 -0500

I am trying to use the classes generated via JAXB 2 with hibernate. Is there
a property I can set to make JAXB generate setter methods for collections...


So if we have:
<xsd:element name="Names" type="xsd:string" minOccurs="0"
maxOccurs="unbounded"/>

We get the method:
public List<String> getNames();

But hibernate also wants a:
public void getNames(List<String>);


Thanks,
    Lucas