Skip to content

4. Conclusion

This tutorial, "Java 5 Persistence in Practice," has provided examples for building multi-tier architectures where

  • data access is controlled by a JPA layer
  • the [service] and [dao] layers run within a Spring or EJB3 container

We concluded with an example of a web application bringing all the layers together:

Although this tutorial is quite comprehensive, it is not exhaustive:

  • some topics have not been covered (entity caching, translating the concept of object inheritance into a SGBD schema, etc.)
  • difficulties were encountered, reported but not resolved, particularly regarding the use of the EJB3 container.

Readers should therefore consider this document only as a starting point for their first steps with Java 5 persistence.