From the course: Learning JakartaEE

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Jakarta Persistence overview

Jakarta Persistence overview

From the course: Learning JakartaEE

Jakarta Persistence overview

- [Instructor] Jakarta Persistence defines standards on how to manage persistence and object/relational mapping in Jakarta EE, as well as Java SE environments. Jakarta Persistence comes to light in the data tier of a Jakarta EE application. Using the Jakarta persistence API, or JPA for short, applications can serialize Java objects into database tables or read data into Java objects. The core of Jakarta Persistence is the concept of an entity. An entity is a lightweight, persistent domain object. An entity represents a table in a relational database. An entity instance therefore corresponds to a row in that table. Entities are represented by Java classes, and the persistent state of an entity is represented through fields or properties that are marked to be persistent in the Java class. Object relational mapping annotations are used to map entities and their fields to database tables and columns. Also, entity relationships are mapped using object relational mapping annotations. A Java…

Contents