Вы находитесь на странице: 1из 5

JAVA HIBERNATE

INTRODUCTION

Hibernate is an ORM tool (Object Relational


Mapping).

Used to map plain Java objects to the tables of a


Java Objects

relational database and vice versa.


Directly maps

Relational Database Tables

Mapping Object Relational

DIFFERENCE IT MAKES

USING JDBC
Step-1: Register JDBC driver Step-2: Open a connection

USING HIBERNATE
Pass a Java Object into the save Method and insert record into the the table. Done!

Step-3: Create the statement


Step-4: Execute the Query Step-5: Close the connection

AND MANY MORE


Great Cache Mechanism for faster retrieval of data. Opening and closing of database connections would no longer be a
problem.

Your application would support almost all the relational databases. A little modification is needed in your Java Application for any changes
in the database.

CONCLUSION
Hibernate is built on top of JDBC only.

Вам также может понравиться