From the course: Java Persistence API (JPA): 1 The Basics

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JPA overview

JPA overview - Java Tutorial

From the course: Java Persistence API (JPA): 1 The Basics

Start my 1-month free trial

JPA overview

- [Instructor] What if I told you that you could access a database without having to write SQL code. Did you even know that was possible? I mean, look at this complex SQL query. Thanks to JPA, writing SQL like this is a thing of the past. Which reduces development time, and increases developer productivity. Let's learn more about the JPA specification and using hibernate as the instance provider for JPA. We will look at how to use annotations to define JPA metadata to help with mapping Java objects to database tables. We will even learn more about the entity manager API that assists with performing database crud operations. JPA is an abstraction on top of JDBC that makes it easy to map objects to relational databases and vice versa. JPA lives in the Javax persistence package, with different sub-packages. But most of the core API and annotations live in the main Javax persistence package. JPA is a specification, or a set of guidelines. And can do nothing on its own, as it only a set of…

Contents