List of usage examples for com.fasterxml.jackson.datatype.hibernate4 Hibernate4Module Hibernate4Module
public Hibernate4Module()
From source file:cn.quickj.AbstractApplication.java
public void init(String rootPath) throws Exception { Setting.load(rootPath);/*from w w w. j a v a 2s . c o m*/ if (Setting.usedb) hibernateInit(); parserFilter(); urlRouting = new ConcurrentHashMap<String, UrlRouting>(); injector = createInjector(); jsonObjectMapper = new ObjectMapper(); jsonObjectMapper.getSerializationConfig().with(new SimpleDateFormat(Setting.longDateFormat)); jsonObjectMapper.registerModule(new Hibernate4Module()); decryptQuickjLicense(Setting.license); }