Adding Hibernate DAO layer in existing Maven project

In this article, we will cover the steps required to add hibernate in an existing Maven project. We are using MySQL database as a reference here, but you can change it accordingly for other databases.   Here is the overview of steps:   1) Create employee table in database   2) In pom.xml, add dependencies […]

Hibernate 4 Hello World

In this article, we will create a basic hibernate 4 project using Maven.   We will connect to a MySQL database, create an Employee table and add a record using Hibernate.   Here are the steps required for this : Create an empty maven project Add Hibernate dependency and MySQL dependency in pom.xml Create a […]