Hibernate Configurations

There are two main hibernate configuration files to work with the Hibernate framework:

  1. <class>.hbm.xml: This configuration file will be having a mapping of class and table along with variables and columns.

2. hibernate.cfg.xml: This configuration file will help us to create a connection with database and map bean class using <class>.hbm.xml

This article is just an overview of Hibernate framework. We will be having a detailed discussion on above configurations in next article.

Overall Hibernate Mapping

Below is the over all mapping strategy required for hibernate project in between class, MySQL table and hibernate configuration.

  1. Create a User bean class and its getter setter methods.
  2. Create user.hbml.xml to create mapping in between class and MySQL table. 
  3. Create hibernate.cfg.xml configuration file for database connection and include user hbm xml mapping file.
  4. create a database and table to insert data in MySQL database.

Imran Khan

Specialist Master (Architect) with a passion for cutting-edge technologies like AEM (Adobe Experience Manager) and a proven track record of delivering high-quality software solutions.

  • Languages: Java, Python
  • Frameworks: J2EE, Spring, Struts 2.0, Hibernate
  • Web Technologies: React, HTML, CSS
  • Analytics: Adobe Analytics
  • Tools & Technologies: IntelliJ, JIRA

🌐 LinkedIn

📝 Blogs

📧 Imran Khan