Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.datatype.hibernate4;
 
 
Simple com.fasterxml.jackson.databind.AnnotationIntrospector that adds support for using javax.persistence.Transient to denote ignorable fields (alongside with Jackson and/or JAXB annotations).
    private static final long serialVersionUID = 1L;

    
Whether we should check for existence of

Transient:
or not. Default value is 'true'.
    protected boolean _cfgCheckTransient;
    /*
    /**********************************************************************
    /* Construction, configuration
    /**********************************************************************
     */
    
    public HibernateAnnotationIntrospector() { }

    
Method to call to specify whether

Transient:
annotation is to be supported; if false, will be ignored, if true, will be used to detect "ignorable" properties.
    public HibernateAnnotationIntrospector setUseTransient(boolean state) {
         = state;
        return this;
    }
    @Override
    public Version version() {
        return ..version();
    }
    @Override
    public boolean hasIgnoreMarker(AnnotatedMember m) {
        return  && m.hasAnnotation(Transient.class);
    }
New to GrepCode? Check out our FAQ X