Class Hibernate5Module
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
public class Hibernate5Module extends com.fasterxml.jackson.databind.Module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHibernate5Module.FeatureEnumeration that defines all toggleable features this module
-
Field Summary
Fields Modifier and Type Field Description protected org.hibernate.engine.spi.Mapping_mappingHibernate mapping.protected int_moduleFeaturesBit flag composed of bits that indicate whichHibernate5Module.Features are enabled.protected org.hibernate.SessionFactory_sessionFactoryprotected static intDEFAULT_FEATURES
-
Constructor Summary
Constructors Constructor Description Hibernate5Module()Hibernate5Module(org.hibernate.engine.spi.Mapping mapping)Hibernate5Module(org.hibernate.engine.spi.Mapping mapping, org.hibernate.SessionFactory sessionFactory)Hibernate5Module(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.AnnotationIntrospectorannotationIntrospector()Method called duringsetupModule(com.fasterxml.jackson.databind.Module.SetupContext), to createAnnotationIntrospectorto register along with module.Hibernate5Moduleconfigure(Hibernate5Module.Feature f, boolean state)Hibernate5Moduledisable(Hibernate5Module.Feature f)Hibernate5Moduleenable(Hibernate5Module.Feature f)StringgetModuleName()booleanisEnabled(Hibernate5Module.Feature f)voidsetupModule(com.fasterxml.jackson.databind.Module.SetupContext context)com.fasterxml.jackson.core.Versionversion()
-
-
-
Field Detail
-
DEFAULT_FEATURES
protected static final int DEFAULT_FEATURES
-
_moduleFeatures
protected int _moduleFeatures
Bit flag composed of bits that indicate whichHibernate5Module.Features are enabled.
-
_mapping
protected final org.hibernate.engine.spi.Mapping _mapping
Hibernate mapping.
-
_sessionFactory
protected final org.hibernate.SessionFactory _sessionFactory
-
-
Constructor Detail
-
Hibernate5Module
public Hibernate5Module()
-
Hibernate5Module
public Hibernate5Module(org.hibernate.engine.spi.Mapping mapping)
-
Hibernate5Module
public Hibernate5Module(org.hibernate.SessionFactory sessionFactory)
-
Hibernate5Module
public Hibernate5Module(org.hibernate.engine.spi.Mapping mapping, org.hibernate.SessionFactory sessionFactory)
-
-
Method Detail
-
getModuleName
public String getModuleName()
- Specified by:
getModuleNamein classcom.fasterxml.jackson.databind.Module
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.databind.Module
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
- Specified by:
setupModulein classcom.fasterxml.jackson.databind.Module
-
annotationIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector()
Method called duringsetupModule(com.fasterxml.jackson.databind.Module.SetupContext), to createAnnotationIntrospectorto register along with module. If null is returned, no introspector is added.
-
enable
public Hibernate5Module enable(Hibernate5Module.Feature f)
-
disable
public Hibernate5Module disable(Hibernate5Module.Feature f)
-
isEnabled
public final boolean isEnabled(Hibernate5Module.Feature f)
-
configure
public Hibernate5Module configure(Hibernate5Module.Feature f, boolean state)
-
-