Example usage for com.fasterxml.jackson.datatype.hibernate4 Hibernate4Module Hibernate4Module

List of usage examples for com.fasterxml.jackson.datatype.hibernate4 Hibernate4Module Hibernate4Module

Introduction

In this page you can find the example usage for com.fasterxml.jackson.datatype.hibernate4 Hibernate4Module Hibernate4Module.

Prototype

public Hibernate4Module() 

Source Link

Usage

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);
}