Spring JDBC using Annotation based configuration

In this article, we will create a Spring JDBC program using Maven. We will connect to a MySQL database using Spring and retrieve data from one of the tables. You can also refer the code from GitHub using the link provided at the end of the article.   Tools/Technologies used:   Maven Spring Eclipse MySQL […]

hibernate

RESTful CRUD operations using Jersey and Hibernate

Here are the objectives of this article :   – Use Maven to create a Jersey JAX-RS service   – Modify the service class to provide GET, POST, UPDATE,DELETE operations   – Use Hibernate to connect to the MySQL database and perform the CRUD operations   Tools/Technologies:   Jersey Hibernate Maven MySQL database Eclipse   […]

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 […]

Spring – RESTful WebService Hello World

In this article, we will go through the steps to create a RESTful webserivce using Spring, Maven, Eclipse and deploy it on Tomcat server.   Here is an overview of the steps involved:   Create an empty Maven web project Import project in Eclipse Add required spring mvc dependencies. Define the DispatcherServlet with URL mapping […]