Hi Uwe, as far as I recall you always have to specify the get-method even if you only want a different set behaviour.
Regards Ralf Am 18.05.2011 18:03, schrieb Uwe: > Am 18.05.2011, 17:58 Uhr, schrieb Uwe <[email protected]>: > >> Am 18.05.2011, 17:44 Uhr, schrieb Uwe <[email protected]>: >> >> I added a method >> >> public void addLi(String s) >> { >> System.out.println("addToLi called with "+s); >> this.li.add(s); >> } >> >> and the corresponding <field> in the mapping file is >> >> <field name="li" type="string" collection="arraylist" >> set-method="addLi" /> >> >> During unmarshalling this function is never called, the list is not >> unmarshalled >> at all and I there is no thrown exception at all. >> >> If I misspell addLi in the mapping file I get an extension that the >> corresponding >> method with the expected signature ist not found. >> > > Further I tried another signature: > > public void updateLi(List<String> s) > { > System.out.println("updateLi called with "+s); > this.li.addAll(s); > } > > and set the attribute "set-method" to "updateLi", but this > method is not called as the addLi method above. > > > > Regards, Uwe > > -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 72127 Kusterdingen Germany Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax +49 7071 3690 98 Internet: www.syscon.eu E-Mail: [email protected] Sitz der Gesellschaft: D-72127 Kusterdingen Registereintrag: Amtsgericht Stuttgart, HRB 382295 Geschäftsleitung: Jens Joachim, Ralf Joachim --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

