Tag Archives: JPA
This article shows how to develop a new Hibernate Hello World project. A sample application is below :
Using Technologies :
MySQL Java Connector 5.1.17
STEP 1 : CREATE USER TABLE
A new USER Table is created by executing below script:
CREATE TABLE USER ( id int(11) NOT NULL, name varchar(45) NOT NULL, surname varchar(45) NOT NULL, PRIMARY KEY (`id`) );
This article tells Hibernate which is a powerful and high-performance Object Relational Mapping Framework. Hibernate was developed by Gavin King in 2001.
It maps Java classes to database tables and from Java data types to SQL data types. A Java Object shows an record in the table which it is mapped. It is also an implementation of JPA.
Hibernate Advantages :
1) Hibernate is Database Independent so selected database can be used.
2) Easy installation
3) Hibernate has got layered architecture.
4) Development with Hibernate is easier than JDBC.
5) Connection pool APIs(c3p0, dbcp) can be integrated with Hibernate easily.