On Wed, 14 Jul 2010 12:42:21 +0200, Aleksei Valikov <[email protected]> wrote:
[...] > You can use the Setters plugin from JAXB2 Basics: > > http://confluence.highsource.org/display/J2B/Using+JAXB2+Basics+Plugins+with+CXF > Works nearly well ;). Indeed, I've added the plugin just as described in the documentation you pointed out but it turns out that the generated class uses addAll() method on the collection instead of assigning it : public void setPersonQuarter(List<PersonQuarterStruct> value) { List<PersonQuarterStruct> draftl = this.getPersonQuarter(); draftl.addAll(value); } I'd rather prefer public void setPersonQuarter(List<PersonQuarterStruct> value) { this.getPersonQuarter = value; } instead. I've searched the net but haven't found any configuration param I could use in order to change this behaviour. Any idea ? Regards. -- Bruno Dusausoy YP5 Software -- Pensez environnement : limitez l'impression de ce mail. Please don't print this e-mail unless you really need to.
