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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Exploring the history of JPA3m 48s
-
(Locked)
Leveraging Object-Relational Mapping (ORM)2m 20s
-
(Locked)
Understanding JPA and its benefits2m 10s
-
(Locked)
Demo: Configuring JPA4m 1s
-
(Locked)
Demo: Reviewing JPA annotations4m 11s
-
(Locked)
Challenge: Create simple employee, company, and salary classes3m 38s
-
(Locked)
Solution: Create simple employee, company, and salary classes3m 43s
-
-
-
-
-
-