Accessing and persisting data in microservices using Java Persistence API (JPA)

0
Language

Learn how to use Java Persistence API (JPA) to access and persist data to a database for your microservices. Discover how to map Java objects to relational database tables and perform CRUD operations. This guide focuses on the event microservice, which includes a JPA entity class and a Data Access Object (DAO) for database operations. Explore the usage of an Embedded Derby database as a data store.

Add your review

At a Glance

Learn how to use Java Persistence API (JPA) to access and persist data to a database for your microservices.

You will learn how to use the Java Persistence API (JPA) to map Java objects to relational database tables and perform create, read, update and delete (CRUD) operations on the data in your microservices.

The application that you will be working with is an event manager, which is composed of a UI and an event microservice for creating, retrieving, updating, and deleting events. In this guide, you will be focused on the event microservice. The event microservice consists of a JPA entity class whose fields will be persisted to a database. The database logic is implemented in a Data Access Object (DAO) to isolate the database operations from the rest of the service. This DAO accesses and persists JPA entities to the database and can be injected and consumed by other components in the microservice. An Embedded Derby database is used as a data store for all the events.

×

    Your Email (required)

    Report this page
    Accessing and persisting data in microservices using Java Persistence API (JPA)
    Accessing and persisting data in microservices using Java Persistence API (JPA)
    LiveTalent.org
    Logo
    Skip to content