Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.reqlist.arch; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.hibernate4.Hibernate4Module; import org.springframework.stereotype.Component; /** * * @author Vinicius */ @Component public class HibernateAwareObjectMapper extends ObjectMapper { public HibernateAwareObjectMapper() { Hibernate4Module hibernate4Module = new Hibernate4Module(); hibernate4Module.configure(Hibernate4Module.Feature.USE_TRANSIENT_ANNOTATION, false); configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); registerModule(hibernate4Module); } }