What is Framework ?
User fullness of frameworks-
A framework will often dictate the structure of your application. Some frameworks even supply so much code that you have to do very little to write your application.
This can be good or bad, depending on how easy it is to use. Frameworks are the substance of programming.
You build on top of a good one, your program is solid and fast and comes together beautifully.
You build on top of a bad one, your life is miserable, brutish, and short.
Hibernate is a high-performance Object/Relational persistence and query service which is licensed under the open source GNU Lesser General Public License (LGPL) and is free to download. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities.
- Hibernate is data base independent, same code will work for all data bases like ORACLE,MySQL ,SQLServer etc. In case of JDBC query must be data base specific.
- As Hibernate is set of Objects , you don’t need to learn SQL language. You can treat TABLE as a Object . In case of JDBC you need to learn SQL.
- Don’t need Query tuning in case of Hibernate. If you use Criteria Quires in Hibernate then hibernate automatically tuned your query and return best result with performance. In case of JDBC you need to tune your queries.
- You will get benefit of Cache. Hibernate support two level of cache. First level and 2nd level. So you can store your data into Cache for better performance. In case of JDBC you need to implement your java cache .