Java Persistence API: Getting Started With JPA & Hibernate


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

JPA, or the Java Persistence API, is focused on persistence. Persistence can refer to any mechanism by which Java objects outlive the applications that created them. JPA is not a tool, or a framework, or an actual implementation.

In this course, you'll explore the basic ideas behind object-relational mapping, where entities and relationships expressed in an object-oriented framework are mapped to records and tables in a relational database.

You'll examine the basic features of the JPA and Hibernate frameworks. You'll then practice how to get set up with the MySQL database, the MySQL Workbench, and Apache Maven to manage dependencies in your Java application.



Expected Duration (hours)
1.6

Lesson Objectives

Java Persistence API: Getting Started With JPA & Hibernate

  • discover the key concepts covered in this course
  • identify why object-relational mapping is needed to work with databases
  • outline the basic functionality that the Hibernate framework provides and how it differs to JPA
  • outline the basic functionality that the JPA framework provides and how it differs to Hibernate
  • install MySQL and MySQL Workbench on a Windows machine
  • set up an Apache Maven project on a Windows machine
  • install MySQL and MySQL Workbench on a macOS machine
  • set up an Apache Maven project on a macOS machine
  • configure JPA and Hibernate dependencies in pom.xml
  • represent entities and primary keys using annotations
  • configure database connection details in persistence.xml
  • store entities in the underlying database using the entity manager
  • configure the range of actions that can be performed using persistence.xml
  • configure drop and create actions using scripts
  • summarize the key concepts covered in this course
  • Course Number:
    it_jmjpehdj_01_enus

    Expertise Level
    Intermediate