Top Description Inners Fields Constructors Methods
com.fasterxml.jackson.datatype.hibernate5

public Class HibernateAnnotationIntrospector

extends AnnotationIntrospector
Class Inheritance
Imports
javax.persistence.Transient, com.fasterxml.jackson.core.Version, com.fasterxml.jackson.databind.AnnotationIntrospector, com.fasterxml.jackson.databind.introspect.AnnotatedClass, .AnnotatedMember

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).

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
HibernateAnnotationIntrospector.FieldHandlerChecker

Helper class used to encapsulate detection of FieldHandler; class that was part of Hibernate from 4.0 until 5.0, but removed from 5.1.

Field Summary

Modifier and TypeField and Description
protected boolean
_cfgCheckTransient

Whether we should check for existence of @Transient or not.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
hasIgnoreMarker(AnnotatedMember m)

Overrides com.fasterxml.jackson.databind.AnnotationIntrospector.hasIgnoreMarker.

Method called to check whether given property is marked to be ignored.

public Boolean
isIgnorableType(AnnotatedClass
Annotated class to introspect
ac
)

Overrides com.fasterxml.jackson.databind.AnnotationIntrospector.isIgnorableType.

Method for checking whether properties that have specified type (class, not generics aware) should be completely ignored for serialization and deserialization purposes.

public HibernateAnnotationIntrospector
setUseTransient(boolean state)

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 Version
version()

Implements abstract com.fasterxml.jackson.databind.AnnotationIntrospector.version.

Implements com.fasterxml.jackson.core.Versioned.version.

Method called to detect version of the component that implements this interface; returned version should never be null, but may return specific "not available" instance (see Version for details).

Inherited from com.fasterxml.jackson.databind.AnnotationIntrospector:
_findAnnotation_hasAnnotation_hasOneOfallIntrospectorsallIntrospectorsfindAndAddVirtualPropertiesfindAutoDetectVisibilityfindClassDescriptionfindContentDeserializerfindContentSerializerfindCreatorAnnotationfindCreatorBindingfindDefaultEnumValuefindDefaultEnumValuefindDeserializationContentConverterfindDeserializationConverterfindDeserializerfindEnumAliasesfindEnumAliasesfindEnumNamingStrategyfindEnumValuefindEnumValuesfindEnumValuesfindFilterIdfindFormatfindIgnoreUnknownPropertiesfindImplicitPropertyNamefindInjectableValuefindInjectableValueIdfindKeyDeserializerfindKeySerializerfindMergeInfofindNameForDeserializationfindNameForSerializationfindNamingStrategyfindNullSerializerfindObjectIdInfofindObjectReferenceInfofindPOJOBuilderfindPOJOBuilderConfigfindPolymorphicTypeInfofindPropertiesToIgnorefindPropertyAccessfindPropertyAliasesfindPropertyContentTypeResolverfindPropertyDefaultValuefindPropertyDescriptionfindPropertyIgnoralByNamefindPropertyIgnoralsfindPropertyInclusionfindPropertyInclusionByNamefindPropertyIndexfindPropertyTypeResolverfindReferenceTypefindRenameByFieldfindRootNamefindSerializationContentConverterfindSerializationConverterfindSerializationPropertyOrderfindSerializationSortAlphabeticallyfindSerializationTypingfindSerializerfindSetterInfofindSubtypesfindTypeNamefindTypeResolverfindUnwrappingNameTransformerfindValueInstantiatorfindViewsfindWrapperNamehasAnyGetterhasAnyGetterAnnotationhasAnySetterhasAnySetterAnnotationhasAsKeyhasAsValuehasAsValueAnnotationhasCreatorAnnotationhasRequiredMarkerisAnnotationBundleisTypeIdnopInstancepairrefineDeserializationTyperefineSerializationTyperesolveSetterConflict

Field Detail

_cfgCheckTransientback to summary
protected boolean _cfgCheckTransient

Whether we should check for existence of @Transient or not. Default value is 'true'.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

HibernateAnnotationIntrospectorback to summary
public HibernateAnnotationIntrospector()

Method Detail

doesUseTransientback to summary
public boolean doesUseTransient()
Since
2.5
hasIgnoreMarkerback to summary
public boolean hasIgnoreMarker(AnnotatedMember m)

Overrides com.fasterxml.jackson.databind.AnnotationIntrospector.hasIgnoreMarker.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.hasIgnoreMarker.

Method called to check whether given property is marked to be ignored. This is used to determine whether to ignore properties, on per-property basis, usually combining annotations from multiple accessors (getters, setters, fields, constructor parameters).

Annotations
@Override
isIgnorableTypeback to summary
public Boolean isIgnorableType(AnnotatedClass ac)

Overrides com.fasterxml.jackson.databind.AnnotationIntrospector.isIgnorableType.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.isIgnorableType.

Method for checking whether properties that have specified type (class, not generics aware) should be completely ignored for serialization and deserialization purposes.

Parameters
ac:AnnotatedClass

Annotated class to introspect

Returns:Boolean

Boolean.TRUE if properties of type should be ignored; Boolean.FALSE if they are not to be ignored, null for default handling (which is 'do not ignore')

Annotations
@Override
setUseTransientback to summary
public HibernateAnnotationIntrospector setUseTransient(boolean state)

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.

versionback to summary
public Version version()

Implements abstract com.fasterxml.jackson.databind.AnnotationIntrospector.version.

Implements com.fasterxml.jackson.core.Versioned.version.

Doc from com.fasterxml.jackson.core.Versioned.version.

Method called to detect version of the component that implements this interface; returned version should never be null, but may return specific "not available" instance (see Version for details).

Returns:Version

Version of the component

Annotations
@Override
com.fasterxml.jackson.datatype.hibernate5 back to summary

pack-priv final Class HibernateAnnotationIntrospector.FieldHandlerChecker

extends Object
Class Inheritance
  • java.lang.Object
  • com.fasterxml.jackson.datatype.hibernate5.HibernateAnnotationIntrospector.FieldHandlerChecker

Helper class used to encapsulate detection of FieldHandler; class that was part of Hibernate from 4.0 until 5.0, but removed from 5.1.

Field Summary

Modifier and TypeField and Description
private final Class<?>
private static final String
public static final HibernateAnnotationIntrospector.FieldHandlerChecker

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<?>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_handlerClassback to summary
private final Class<?> _handlerClass
FIELD_HANDLER_INTERFACEback to summary
private static final String FIELD_HANDLER_INTERFACE
instanceback to summary
public static final HibernateAnnotationIntrospector.FieldHandlerChecker instance

Constructor Detail

FieldHandlerCheckerback to summary
public FieldHandlerChecker()

Method Detail

getHandlerClassback to summary
public Class<?> getHandlerClass()