public class Configuration extends Object implements Serializable
Configuration
- It allows declarative configuration through the hibernate.properties
file
or the hibernate-types.properties
file.
The properties from hibernate-types.properties
can override the ones from the hibernate.properties
file.
It loads the Properties
configuration file and makes them available to other components.Modifier and Type | Class and Description |
---|---|
static class |
Configuration.PropertyKey
Each Property has a well-defined key.
|
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_PROPERTIES_FILE_NAME |
static Configuration |
INSTANCE |
static String |
PROPERTIES_FILE_NAME |
static String |
PROPERTIES_FILE_PATH |
Modifier and Type | Method and Description |
---|---|
Boolean |
booleanProperty(Configuration.PropertyKey propertyKey)
Get Boolean property value
|
<T> Class<T> |
classProperty(Configuration.PropertyKey propertyKey)
Get Class property value
|
ObjectMapperWrapper |
getObjectMapperWrapper()
Get
ObjectMapperWrapper reference |
Properties |
getProperties()
Get all properties.
|
Integer |
integerProperty(Configuration.PropertyKey propertyKey)
Get Integer property value
|
Long |
longProperty(Configuration.PropertyKey propertyKey)
Get Long property value
|
public static final Configuration INSTANCE
public static final String PROPERTIES_FILE_PATH
public static final String PROPERTIES_FILE_NAME
public static final String APPLICATION_PROPERTIES_FILE_NAME
public Properties getProperties()
public ObjectMapperWrapper getObjectMapperWrapper()
ObjectMapperWrapper
referenceObjectMapperWrapper
referencepublic Integer integerProperty(Configuration.PropertyKey propertyKey)
propertyKey
- property keypublic Long longProperty(Configuration.PropertyKey propertyKey)
propertyKey
- property keypublic Boolean booleanProperty(Configuration.PropertyKey propertyKey)
propertyKey
- property keypublic <T> Class<T> classProperty(Configuration.PropertyKey propertyKey)
T
- class generic typepropertyKey
- property keyCopyright © 2022. All rights reserved.