It is usually created only once during application initialization. It represents a configuration or properties file required by the Hibernate.
The Configuration object provides two keys components :
DATABASE CONNECTION : This is handled through one or more configuration files supported by Hibernate. These files are hibernate. Properties and hibernate.cfg.xml
.
CLASS MAPPING SETUP : This component creates the connection between the Java classes and database tables.