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
--
Dr. rer. nat. Uwe Schmitt
Forschung & Entwicklung Mathematik
mineway GmbH
Gebäude 4
Im Helmerswald 2
66121 Saarbrücken
Telefon: +49 (0)681 8390 5334
Telefax: +49 (0)681 830 4376
[email protected]
www.mineway.de
Geschäftsführung: Dr.-Ing. Mathias Bauer
Amtsgericht Saarbrücken HRB 12339
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email