Hibernate Architecture with the help of simple block diagram

Leave a Comment
Hibernate Architecture


The hibernate architecture is a three tier architecture in which an application is interfaced with the back end database using the hibernate as a middle layer.

The most important thing in mapping the object to the database objects is to write the configuration file for hiberanate. Hibernate is written in Java and is configured using two types of files named hibernate.cfg.xml and mapping description file having the extension .hbm.

At the beginning the hibernate reads the XML configuration file for obtaining the database connection, string, password, database dialect and location of mapping files. Then hibernate searches for these files.

 The second type of configuration file that is mapping description file. This file helps hibernate to map data between specific Java class and database tables.

There can be single hibernate.cfg.xml and multiple .hbm files for a simple mapping.

Thus hibernate is useful for any Java application in which the data is moved from Java objects to database tables.

0 comments:

Post a Comment