TerrastoreClient's json mappings can only be customized by providing a
proper terrastore.client.mapping.JsonObjectDescriptor implementation,
as showed in the following test:
http://code.google.com/p/terrastore/source/browse/src/test/java/terrastore/client/test/integration/TerrastoreClientWithCustomDescriptorIntegrationTest.java?repo=javaclient
There's currently no way to set a custom ObjectMapper, but you could
open an issue about that, and also propose a patch, which would be
great too ;)
Let us know if you need any guidance about either the former or the
latter approach.
Cheers,
Sergio B.
--
Sergio Bossa
http://www.linkedin.com/in/sergiob
Thanks
/Tomas
/Tomas
> However, that means that you cannot use abstract classes with terrastore?
I've made it working with no custom descriptors, by just applying the
org.codehaus.jackson.annotate.JsonTypeInfo annotation to the
polymorphic types: let us know if it works for you.
/Tomas
> Well, it is just that I don't want to use annotations. I want the classes to
> be implementation agnostic.
Fair enough, but saying the Terrastore Client doesn't support abstract
classes isn't that fair ;)