Hibernate Configuration

ParameterTypeDefault ValueDescription
configurationClass
(Optional)
Stringorg.hibernate.cfg.Configuration or
org.hibernate.cfg.AnnotationConfiguration,
depending on the JDK version
Sets the Configuration
object to be used by Hibernate.
configurationFile
(Optional)
Stringsrc/main/resources/hibernate.cfg.xmlThe location of the Hibernate configuration XML
file (hibernate.cfg.xml).
propertyFile
(Optional)
Stringsrc/main/resources/database.propertiesThe location of Hibernate configuration file (Java
properties file).
This file is also set in the runtime by Hibernate
for configuring Hibernate Session, so it's better
to keep it separately from the project's
configuration files like project.properties etc.
For description of the properties take a look at
Hibernate User Guide?.
namingStrategy
(Optional)
Stringorg.hibernate.cfg.DefaultNamingStrategySets the NamingStrategy to be used by Hibernate.
entityResolver
(Optional)
Stringorg.xml.sax.EntityResolverUsed if the mapping files require custom entity resolver.