Object Relational Mapping with Jakarta Persistence
Jakarta EE applications frequently need to persist data in a relational database. In this chapter, we will cover how to connect to a database and perform Create, Read, Update, and Delete (CRUD) operations via Jakarta Persistence.
Jakarta Persistence is the standard Jakarta EE Object Relational Mapping (ORM) tool. We will discuss this API in detail in this chapter.
The following are the topics covered in this chapter:
- The CUSTOMERDB database
- Configuring Jakarta Persistence
- Persisting data with Jakarta Persistence
- Entity relationships
- Composite primary keys
- Jakarta Persistence Query Language
- Criteria API
- Bean Validation support
Note
The source code used in this chapter can be found on GitHub at https://github.com/PacktPublishing/Jakarta-EE-Application-Development/tree/main/ch08_src.