JPA standardizes the important task of object-relational mapping by using annotations or XML to map objects into one or more tables of a database. To further simplify the persistence programming model: The EntityManager API can persist, update, retrieve, or remove objects from a database.
https://www.infoworld.com/article/3379043/what-is-jpa-introduction-to-the-java-persistence-api.html