users@jaxb.java.net

Re: Set methods for collections

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

Oops.


 But hibernate also wants a:
public void setNames(List<String>); <-- set names, not get names

-Lucas

On 2/3/06 11:12 AM, "Lucas Jordan" <lucasjordan_at_softhome.net> wrote:

> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>