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 long, it is by no means exhaustive:
- some JPA topics were not covered (entity caching, translating the concept of object inheritance into a DBMS 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.
