In this chapter, we've taken a look at database persistence with Seam. We've looked at how SeamGen helps us create and configure our applications allowing tests, development and production profiles to be configured.
We saw how we can use JPA within a Seam application and how we can perform all of the CRUD operations on entities. We also looked at managing relationships between entities. These were one-to-one, one-to-many, many-to one, and many-to-many relationships.
Finally, we looked at the Seam application framework and saw how this delivers even simpler database access when performing CRUD operations on entities via home and query objects. We saw that the Seam application framework allows us to define home and query objects in both Java and configuration via the components.xml
file.