JAVA HIBERNATE
Introduction:
Hibernate Framework Hibernate is a Java framework that simplifies the development of Java application to interact with the database. It is an open source, lightweight, ORM (Object Relational Mapping) tool. Hibernate implements the specifications of JPA (Java Persistence API) for data persistence.
DEFINITION:
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.
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.
Hibernate framework provides the facility to create the tables of the database automatically. So there is no need to create tables in the database manually.
Java hibernate system :
Conclusion :
Hibernate provides an easy touse and powerful option to persist data in a relational database. It acts as a layer on top of JDBC and maps your database records to Java objects, called entities. You can use these entities to read, persist, update and remove database records.
No comments:
Post a Comment