@Provider public class ObjectMapperProvider extends Object implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectMapperProvider.PreserveLeadingUnderscoreStrategy
This abomination is necessary because when using MongoJack to read "_id" object ids back from the database
the property name isn't correctly mapped to the POJO using the LowerCaseWithUnderscoresStrategy.
|
| Constructor and Description |
|---|
ObjectMapperProvider() |
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>Copyright © 2012–2014 TORCH GmbH. All rights reserved.