ObjectDB ObjectDB

Getting Started with JPA

This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple Point entity objects, where each Point has two persistent fields - x and y.

If you already know JPA - the source code will be straightforward. That is one of the benefits of ObjectDB, which is the only Object Database with built in support of JPA. The sample application is also explained in details in Chapter 1 of the ObjectDB Manual, but if you prefer to start by running a live sample application in your IDE, you should be able to follow this tutorial easily, even if you are completely new to JPA.

This tutorial is available in the following versions:

In addition the demonstrated application is available as a Maven project: