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.
Benefits of JPA over pure JDBC - Java Tutorial
From the course: Java Persistence API (JPA): 1 The Basics
Benefits of JPA over pure JDBC
- [Instructor] What if I told you that I could help save you time? I could literally give you back precious development time. Well, I'm going to show you the time-saving advantages of JPA over pure JDBC when it comes to performing one of the most common tasks when writing a Java application, querying a relational database. Let's learn more about the benefits of JPA over pure JDBC and it's time-saving features. In order to connect to a database from Java, you typically rely on an external framework or low level API provided by Java, like JDBC. JDBC stands for Java Database Connectivity. As I mentioned, JDBC is a low level Java API that provides the ability to interact with relational databases. Specifically, JDBC allows Java programs to connect to a database, query data in a database by running SQL directly against it, updating data in a database using SQL, and process the results of a database query. Let's say you have a TrackZilla ticket class. The ticket class has fields like id…
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.