Closed GoogleCodeExporter closed 9 years ago
As of 0.9.3 the getter/setter handling has changed: getters/setters will not be
any
more automatically mapped when annotations are used on private fields. In fact
using
annotations on private fields is no longer supported.
Please see: http://code.google.com/p/xmappr/wiki/GettersSetters
in your case if a method name for example is "isReliable()" and the XML element
name
is <reliable>, then you could do:
@Element("reliable")
public boolean isReliable();
Original comment by peter.kn...@gmail.com
on 4 Mar 2010 at 2:34
I have another question: why Xmappr require 'getter/setter' both? In most
situation,
users just want to generate java bean from xml, it seems that there is no need
to
annotate 'getter'(While JAXB don't have that restriction)
Original comment by yinqiwen@gmail.com
on 5 Mar 2010 at 6:28
Since 0.9.3, Xmappr does not require getters/setters any more for private
fields. In
fact private fields are not supported any more.
You must now explicitly put annotations on methods.
Please see: http://code.google.com/p/xmappr/wiki/GettersSetters
Original comment by peter.kn...@gmail.com
on 5 Mar 2010 at 7:08
Original comment by peter.kn...@gmail.com
on 5 Mar 2010 at 7:09
Original issue reported on code.google.com by
yinqiwen@gmail.com
on 4 Mar 2010 at 1:08