Class Hibernate6Module
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- com.fasterxml.jackson.datatype.hibernate6.Hibernate6Module
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
public class Hibernate6Module extends com.fasterxml.jackson.databind.Module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHibernate6Module.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 whichHibernate6Module.Features are enabled.protected org.hibernate.SessionFactory_sessionFactoryprotected static intDEFAULT_FEATURES
-
Constructor Summary
Constructors Constructor Description Hibernate6Module()Hibernate6Module(org.hibernate.engine.spi.Mapping mapping)Hibernate6Module(org.hibernate.engine.spi.Mapping mapping, org.hibernate.SessionFactory sessionFactory)Hibernate6Module(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.Hibernate6Moduleconfigure(Hibernate6Module.Feature f, boolean state)Hibernate6Moduledisable(Hibernate6Module.Feature f)Hibernate6Moduleenable(Hibernate6Module.Feature f)StringgetModuleName()booleanisEnabled(Hibernate6Module.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 whichHibernate6Module.Features are enabled.
-
_mapping
protected final org.hibernate.engine.spi.Mapping _mapping
Hibernate mapping.
-
_sessionFactory
protected final org.hibernate.SessionFactory _sessionFactory
-
-
Constructor Detail
-
Hibernate6Module
public Hibernate6Module()
-
Hibernate6Module
public Hibernate6Module(org.hibernate.engine.spi.Mapping mapping)
-
Hibernate6Module
public Hibernate6Module(org.hibernate.SessionFactory sessionFactory)
-
Hibernate6Module
public Hibernate6Module(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 Hibernate6Module enable(Hibernate6Module.Feature f)
-
disable
public Hibernate6Module disable(Hibernate6Module.Feature f)
-
isEnabled
public final boolean isEnabled(Hibernate6Module.Feature f)
-
configure
public Hibernate6Module configure(Hibernate6Module.Feature f, boolean state)
-
-