users@jaxb.java.net

Re: Set methods for collections

From: Ben Gidley <ben_at_gidley.co.uk>
Date: Fri, 3 Feb 2006 18:32:17 +0000

A slight word of caution - if you use proxys in Hibernate just adding the
get/set won't work as Jaxb directly reads the field.

I have had to write a class that users reflection to copy the hibernate
values into plain JAXB classess to solve this.



Ben

On 2/3/06, Lucas Jordan <lucasjordan_at_softhome.net> wrote:
>
> I am willing to make a plug in. a quick google leads me to:
> http://java.sun.com/webservices/docs/2.0/jaxb/developPlugins.html
>
> Are there any other resources I should know about?
>
> Also, I currently am using a small set of of global bindings to make the
> classes hibernate friendly, like using GregorianCalendar and not
> XMLGregorianCalendar...is this something could accomplish? I ask because a
> general use "make hibernate friendly" plug in might be nice for others.
>
> -Lucas
>
>
> On 2/3/06 11:47 AM, "Kohsuke Kawaguchi" <kohsuke.kawaguchi_at_sun.com> wrote:
>
> > Lucas Jordan wrote:
> >> Oops.
> >>
> >>
> >> But hibernate also wants a:
> >> public void setNames(List<String>); <-- set names, not get names
> >
> > Sounds like a good plugin possibility to me.
> >
> > Would you be interested in writing one?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>