We're retiring Oracle Learning Library by the end of 2025.
Explore tutorials and labs on docs.oracle.com/learn or access free learning content on the Oracle Learning YouTube channel.For product documentation, visit Oracle Help Center.
This example demonstrates implementing CRUD database operations using Java Persistence API for desktop applications.
The Java Persistence API provides Java developers with an object/relational mapping facility for managing relational data in Java applications. Some of the features of JPA are
You won't have to create complex data access objects (DAO). The API helps you manage transactions. JPQL is database agnostic, freeing you from vendor-specific code. JPQL is portable whereas SQL is not. You can avoid SQL in preference to a query language, JPQL that uses your class names and properties. You can also use the Java Persistence API for desktop application persistence.
In this tutorial, you will create java client programs to demonstrate the following CRUD operations- Retrieve, Update and Delete operations using Entity clases. The Create operation is covered in Using Java Persistence API for Java SE 7 Desktop applications in NetBeans 7- Part 1.
Duration: 45 minutes
Release Date: 18-JAN-2013
Created by: Anjana Shenoy
This two-part series describes how to work with the Java Persistence API in an application using NetBeans 7.
Release Date: 24-MAR-11
Release Date: 03-JUN-13