public class Hibernate5Module
extends com.fasterxml.jackson.databind.Module
| Modifier and Type | Class and Description |
|---|---|
static class |
Hibernate5Module.Feature
Enumeration that defines all toggleable features this module
|
| Modifier and Type | Field and Description |
|---|---|
protected org.hibernate.engine.spi.Mapping |
_mapping
Hibernate mapping.
|
protected int |
_moduleFeatures
Bit flag composed of bits that indicate which
Hibernate5Module.Features
are enabled. |
protected org.hibernate.SessionFactory |
_sessionFactory |
protected static int |
DEFAULT_FEATURES |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
annotationIntrospector()
Method called during
setupModule(com.fasterxml.jackson.databind.Module.SetupContext), to create AnnotationIntrospector
to register along with module. |
Hibernate5Module |
configure(Hibernate5Module.Feature f,
boolean state) |
Hibernate5Module |
disable(Hibernate5Module.Feature f) |
Hibernate5Module |
enable(Hibernate5Module.Feature f) |
String |
getModuleName() |
boolean |
isEnabled(Hibernate5Module.Feature f) |
void |
setupModule(com.fasterxml.jackson.databind.Module.SetupContext context) |
com.fasterxml.jackson.core.Version |
version() |
protected static final int DEFAULT_FEATURES
protected int _moduleFeatures
Hibernate5Module.Features
are enabled.protected final org.hibernate.engine.spi.Mapping _mapping
protected final org.hibernate.SessionFactory _sessionFactory
public Hibernate5Module()
public Hibernate5Module(org.hibernate.engine.spi.Mapping mapping)
public Hibernate5Module(org.hibernate.SessionFactory sessionFactory)
public Hibernate5Module(org.hibernate.engine.spi.Mapping mapping,
org.hibernate.SessionFactory sessionFactory)
public String getModuleName()
getModuleName in class com.fasterxml.jackson.databind.Modulepublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.databind.Modulepublic void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
setupModule in class com.fasterxml.jackson.databind.Moduleprotected com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector()
setupModule(com.fasterxml.jackson.databind.Module.SetupContext), to create AnnotationIntrospector
to register along with module. If null is returned, no introspector is added.public Hibernate5Module enable(Hibernate5Module.Feature f)
public Hibernate5Module disable(Hibernate5Module.Feature f)
public final boolean isEnabled(Hibernate5Module.Feature f)
public Hibernate5Module configure(Hibernate5Module.Feature f, boolean state)
Copyright © 2019 FasterXML. All rights reserved.