ObjectDB ObjectDB

NetBeans/JPA Spring MVC Web Tutorial

This is the NetBeans version of the Spring MVC and JPA tutorial. It demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application in NetBeans - using JPA, ObjectDB, Tomcat (or GlassFish) and Maven.

The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form:

Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest JPA entity object and all the Guest entity objects are stored in an ObjectDB database.

Required Software

For this tutorial you will need the following software:

  • Java JDK 6.0 (or above).
  • NetBeans (Java or All bundle).

The tutorial was written for NetBeans 6.9.1 but it should work with other NetBeans versions as well (dialog boxes and menus might look slightly different but the code would be the same).

The tutorial is based on using a Maven project. Therefore, required JAR files (ObjectDB, Spring Framework) will be downloaded automatically during build from Maven repositories.

The Tutorial Steps

This tutorial consists of the following steps: