Search in sources :

Example 1 with FacetValueDeserializer

use of nl.knaw.huygens.timbuctoo.server.mediatypes.v2.search.FacetValueDeserializer in project timbuctoo by HuygensING.

the class TimbuctooV4 method setupObjectMapping.

private void setupObjectMapping(Environment environment) {
    // object mapping
    SimpleModule module = new SimpleModule();
    module.addDeserializer(FacetValue.class, new FacetValueDeserializer());
    environment.getObjectMapper().registerModule(module);
}
Also used : FacetValueDeserializer(nl.knaw.huygens.timbuctoo.server.mediatypes.v2.search.FacetValueDeserializer) SimpleModule(com.fasterxml.jackson.databind.module.SimpleModule)

Aggregations

SimpleModule (com.fasterxml.jackson.databind.module.SimpleModule)1 FacetValueDeserializer (nl.knaw.huygens.timbuctoo.server.mediatypes.v2.search.FacetValueDeserializer)1