<h2 class=\"h2\" style=\"line-height: 1.3em; font-family: erdana, helvetica, arial, sans-serif; color: rgb(97, 11, 56); font-size: 25px;\">Advantages of Hibernate Framework</h2><p style=\"font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;\">Following are the advantages of hibernate framework:</p><h3 class=\"h4\" style=\"line-height: 1.3em; font-family: erdana, helvetica, arial, sans-serif; color: rgb(97, 11, 75); font-size: 17px; margin-left: 0px; padding: 0px;\">1) Open Source and Lightweight</h3><p style=\"font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;\">Hibernate framework is open source under the LGPL license and lightweight.</p><h3 class=\"h4\" style=\"line-height: 1.3em; font-family: erdana, helvetica, arial, sans-serif; color: rgb(97, 11, 75); font-size: 17px; margin-left: 0px; padding: 0px;\">2) Fast Performance</h3><p style=\"font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;\">The performance of hibernate framework is fast because cache is internally used in hibernate framework. There are two types of cache in hibernate framework first level cache and second level cache. First level cache is enabled by default.</p><h3 class=\"h4\" style=\"line-height: 1.3em; font-family: erdana, helvetica, arial, sans-serif; color: rgb(97, 11, 75); font-size: 17px; margin-left: 0px; padding: 0px;\">3) Database Independent Query</h3><p style=\"font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;\">HQL (Hibernate Query Language) is the object-oriented version of SQL. It generates the database independent queries. So you don\'t need to write database specific queries. Before Hibernate, if database is changed for the project, we need to change the SQL query as well that leads to the maintenance problem.</p>