Hibernate declarative configuration
As with many other frameworks, you must configure Hibernate before you can use it. The configuration process consists of two parts:
- Object Mappings: Determine the object mappings that define how persistent objects are mapped to their respective database tables.
- Database-Relevant Information: Specify database-relevant information to tell Hibernate how to connect to the database and perform persistence operations. The basic configuration information is database driver, URL, username, and password. However, configuration options are not limited to these. Other significant configuration settings include using a container-managed versus a non-container-managed data source, cache configuration, transaction settings, ...