cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Mittendorf <>
Subject Why is method encodeProperty(String, Object, boolean) of XMLEncoder private?
Date Tue, 26 Sep 2006 11:03:37 GMT

I would like to serialize properties that are NULL into the xml.

I therefore submit a String "" to the serializer, but in those cases
the type will be set to String instead of Date or whatever type the
property actually is.

It would be helpful if I could configure the encodeProperty method
in a way that it would do something else than simply return if a
value is null:

void encodeProperty(String xmlTag, Object value, boolean useType)
if (value == null) {


View raw message