8
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 ...
Get Jakarta EE Application Development - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.