From the course: Java Persistence with JPA

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Understanding JPA and its benefits

Understanding JPA and its benefits - Java Tutorial

From the course: Java Persistence with JPA

Understanding JPA and its benefits

- [Instructor] In the last video, I told you that I could not imagine life as a Java developer without JPA. There may be some of you thinking, "Well, JPA is not really necessary, because I can just use JDBC to communicate with the database." You can, but why would you when you don't have to? You already know that JDBC is a low level API that provides the ability to interact with relational databases. So what can JDBC do? JDBC allows you to connect to a database. It allows you to query data in a database by running SQL directly against it. It also allows you to update data in a database using SQL. And you can also process the results of a database query in your Java application. While JDBC gets the job done, JPA offers time-saving features that you can't ignore. Take a look at this complex SQL. As a Java developer, wouldn't you rather deal with code and the Java object model instead of having to write this complex…

Contents