Hibernate advantages are as below:
1) Opensource and Lightweight: Hibernate framework is a opensource and lightweight.
2) Fast performance: The performance of hibernate framework is fast because in the hibernate framework cache is internally used.
There are two types of cache in hibernate framework
First level cache and Second level cache. First level cache is enabled bydefault.
3) Database Independent query: HQL (Hibernate Query Language) is the object-oriented version of SQL. With the help of we can generates the database independent queries. So there is not need to write the specific query. When there was not hibernate then we have change query if we change database but now no need to do this kind of activity.
4) Automatic table creation: Hibernate framework has the ability to create the table of the database automatically. So when we use the hibernate then we no need to write the specific query in database.
5) Simplifies complex join: When we want to fetch data form multiple(from more than one) tables is easy in hibernate framework.
6) Provides query statistics and database status: Hibernate supports Query cache and provide statistics about query and database status.
The Hibernate architecture includes many objects persistent object, session factory, transaction factory, connection factory, session, transaction etc.