Julien Dubois

Tudu Lists‎ > ‎

Developer documentation

Learning Spring with Tudu Lists

Many people are using Tudu Lists to learn how to use modern-day Java technologies, such as Spring or JPA. Feel free to have a look at the source code :
Of course you can checkout the project directly from SVN :
The current development version is in trunk/tudu3.

In order to build the project, we use Maven :
  • Install Maven from http://maven.apache.org/ and open up a console in the directory containing Tudu Lists' source code.
  • Type "mvn install" to download all dependencies and install Tudu Lists into your local Maven repository.
  • Once this "mvn install" command is finished running, Tudu Lists is built on your system.

Architecture

Introduction

Tudu Lists is a three-layer Web application which uses best practices from the Spring Framework in order to achieve better modularity, testability and performance.

Persistance layer

Tudu Lists uses the Java Persistance API (JPA) in order to persist Java objects in relational databases. More specifically, it uses the Hibernate ORM engine to achieve this persistance.

This allows Tudu Lists to work with a number of different databases.

Here is a graphical representation of Tudu Lists database schema :

Service layer

Tudu Lists uses Spring to manage business objects in the service layer.

Here is a graphical representation of the Spring beans in the service and repository layers (this graphic was generated by Spring IDE) :


Presentation layer

Several different presentation layers can be plugged on top of the Tudu Lists service layer. The default one uses Spring MVC as its MVC2 framework and DWR for doing AJAX calls.

Here is a graphical representation of the Spring beans in the presentation layer (generated with Spring IDE) :



Pièces jointes (1)