Archive

Posts Tagged ‘Hibernate Tutorial’

Hibernate Persistence Tutorial: Use Hibernate in your java applications to access database

August 17th, 2009 1 comment

This is third hibernate tutorial for advanced users .We will talk about hibernate persistence  and how you will connect with hibernate to the database. The database we would be using is mysql.

Our last two posts had covered hibernate setup , hibernate configuration and how using annotation with hibernate.

First Hibernate Tutorial

Hibernate Using Annotations
 

Step 1:  Create java project in eclipse

Step2: add the required libraries.

Read more…

Hibernate Tutorial – Using Annotations with Hibernate

August 6th, 2009 5 comments

In case you missed the first post Hibernate Tutorial for beginners , please go through it if you are new to hibernate.

Annotations are powerful and easy way used to provide metadata about the class.They do not effect the operation of the code. They can be used to provide information about the class to the compiler. They can be used to replace the configuration files.  Many applications scan files and detect annotated classes and get configured accordingly.  I am using JPA API here to demonstrate you the usage of annotations. Please download ejb3-persistence.jar and include in your referenced libraries.

Read more…

First Hibernate Tutorial –Get Hands on Experience -Part I

August 5th, 2009 50 comments

Part – II >>

Hibernate is a powerful, high performance object/relational persistence and query service. It maps database tables to objects so that the database tables can be queried and used as objects.

This hibernate tutorial gives a step by step solution to develop a first Hibernate application using Eclipse.

  1. Requirements:Eclipse 3, Mysql Database, JDK 1.5, Download hibernate from https://www.hibernate.org/30.html and unzip it.
  2. Setting Up Project :

Read more…