Hibernate Configuration
To inform Hibernate from where to find mapping information of Java classes to database tables or configuration setting related to database, All such information is usually supplied by Hibernate Configuration Object. It is managed by an instance of org.hibernate.cfg.Configuration. An instance of org.hibernate.cfg.Configuration represents an entire set of mappings of an application’s Java types to an SQL database. The mappings are compiled from various XML mapping files or from Java 5 Annotations. Hibernate provides following types of configurations hibernate.cfg.xml – A standard XML file which contains hibernate configuration and which resides in root of application’s CLASSPATH hibernate.properties – A Java compliant property file which holds key value pair for different hibernate configuration strings. Programmatic configuration – This is the manual approach. The configuration can be defined in Java class. 1. hibernate.cfg.xml : The hibernate.cfg.xml file...