Hibernate
Introduction:
Hibernate is an Open Source Object Relational mapping framework,
Using Hibernate you can add, edit, delete objects to and from a database.
Why O/R mapping? - Why Object/Relational mapping?
1). Productivity
Hibernate help the developer to write complex SQL and no need JDBC API for result set and data handling. So developer takes more concentrate on business logic and increase productivity.
2). Maintain Ability
Hibernate helps to reduce the coding. So a system with less code is easier to maintain.
3). Free – Cost Effective
Hibernate is free and open source – Cost Effective4). Learning curve is short
5). Code generation tool
Hibernate tools provided by community helps for developer to generate or develop hibernate application very fast and easy.
Hibernate to run
Real time Example: to make coffee.
Requirements:
Real time example, we are going to prepare coffee. What are the requirements are needed to make coffee.
!) Any type of flame
2). Water
3). Coffee powder
4). Milk
5). Sugar
Procedure:
We follow some procedure to make coffee.
Step 1: Boil the water
Step 2: add sugar
Step 3: add coffee powder
Step 4: add milk
Step 5: boil some more time
Step 6: filter
Coffee Ready to drink
Hibernate to run
Requirements:
Netbean 6.8
Procedure:
Step 1:
Create web application
Step 2:
Select Hibernate when we create web application.
Step 3:
Create reverse engineering
Step 4:
Create util
Step 5:
Create POJO classes
Step 6:
Create jsp
Next Post, we will learn how to create Hibernate application that is used to insert record into the database.
No comments:
Post a Comment