Summary
In this chapter, we learned how to use the Java Persistence APIs to do database-related operations using object-oriented approaches. This is really going to simplify your data access layer in your application, as the efforts of mapping objects to relational things will be avoided, freeing you to focus on your business logic.
And now, it's time to keep our data consistent by stopping any incorrect business data from getting passed to our data objects using the Bean Validation API 2.0, which will be our topic in the next chapter. Get ready!