JPA for Beginners

All you need to know to build your persistence layer with JPA
using Hibernate or EclipseLink

You can find Hibernate or EclipseLink, the two most popular implementations of the Java Persistence API (JPA), in almost all enterprise applications. That makes the JPA specification the by far most popular approach to persist data in relational databases, like Oracle, MS SQL, PostgreSQL and MySQL.

So, it's no surprise that experience with JPA is one of the most in-demand skills in Java development.

If you haven't used JPA yet or if you just have some rudimentary knowledge about some of its basic annotations, you need to learn more about it so that you can use and include it in your resumee with confidence.

But don't worry, that's much easier and requires less time than you might expect. I have been using JPA for the last 15 years and I spend most of my time implementing and optimizing JPA-based persistence layers for large, enterprise-scale applications. I have put all this experience into a beginners training that shows you in a few hours how to use the JPA specification and provides you with a solid understanding of its most important concepts.

In this online training, I will show you all you need to start using JPA and its implementations.
During this training, you will learn to:

  • implement your own entities and map them to database tables
  • understand JPA's lifecycle model and how it affects the executed SQL statements
  • persist new records or update and remove existing ones in your database
  • check
    write custom queries to read data from your database.

Start using JPA with confidence!

17 Video Lectures with Example Projects and Exercises that show you everything you need to know to use the JPA specification with one of its popular implementations in your project.

Get familiar with the concept of object relational mapping and the most important terms.

  • Lecture 1: 
    What is ORM?
  • Lecture 2:
    JPA vs. EclipseLink/Hibernate
  • Lecture 3:
    Introducing the Example Project

Learn how to configure and bootstrap your JPA implementation.

  • Lecture 4:
    Dependencies
  • Lecture 5:
    Configuration & Bootstrapping
  • Lecture 6:
    Logging

Understand JPA's defaults for simple mappings and how to customize them.

  • Lecture 7:
    Basic Entity Mappings
  • Lecture 8: 
    Generate Unique Identifier Values
  • Lecture 9: 
    Customize Your Mappings
  • Lecture 10:
    Mapping Enumerations
  • Lecture 11:
    Mapping Dates and Timestamps

Learn about JPA's lifecycle model and how you can use it to persist, update and remove entities.

  • Lecture 12:
    Working with Entities

Model associations between your entities and define when they will be loaded from the database.

  • Lecture 13:
    One-to-Many & Many-to-One Associations
  • Lecture 14:
    Many-to-Many Associations
  • Lecture 15:
    One-to-One Associations
  • Lecture 16:
    Fetch Types

Use JPA's query language to implement queries based on your domain model.

  • Lecture 17:
    JPQL Queries

About the Author

My name is Thorben Janssen, and I'm the author of the Amazon bestselling book Hibernate Tips - More than 70 solutions to common Hibernate problems.

For the last 15 years, I have been using Hibernate and JPA in all kinds of projects. From small ones with very aggressive timelines to huge projects that had to handle thousands of users.

The requirements of these applications were very different and I learned that Hibernate provides good solutions for all of them. You just have to understand the features with their advantages and disadvantages.

​I'm looking forward to showing you how to use Hibernate's advanced features so that you implement complex persistence requirements with ease.

Videos, Example Projects, Exercises ...

Training Videos

Watch 17 video lectures and start using JPA in your projects.

Example Projects

Get all example projects that are used during the training.

Lifetime Access

Study at your own pace with lifetime access to all training material.

Exercises

Try what you have learned in practical exercises.

Handout

Get an extensive handout with commented slides.

Start Today! Choose Your Training Package

Watch only the videos and study on your own
or use your new knowledge in exercises and get a participation certificate.

Select the package that fits best to your personal style of learning.

Master Class

  • All Video Lectures
  • Example Projects for all Lectures
  • Slides for all Lectures

Enroll Now

Certification Class

  • All Video Lectures
  • Example Projects for all Lectures
  • Practical Exercises & Solutions
  • Extensive Handout
  • Participation Certificate

Enroll Now

30 Days Money Back Guarantee

I strongly believe in the value of this course and that it will help you to improve your understanding and usage of JPA. Therefore I confidently back this course with my 30 Days Money Back Guarantee!

If you are not satisfied with the course, contact me within 30 days after your registration and I will refund your money without any further questions.

FAQ

May I watch an example lecture?

Sure! Here is a lecture about basic entity mappings:


What version of JPA is this training based on?

The code examples are based on JPA 2.2 but you can use almost all of it with JPA 2.1 and 2.0.


Which JPA implementation do I need to use?

There are multiple JPA implementations available and you can use the code examples with all of them. That's one of the great benefits of the JPA specification. As long as you follow the standard, you can run the same code with all compliant implementations of the JPA specification.


How long do I have access to the course?

You get life-time access to all training materials. That includes the lectures, example projects, exercises and handouts.


Do I have to have any experience with JPA or one of its implementations?

No! You don't need to know anything about JPA. I will show you everything you need to know in this online training.
But you should be familiar with Java, SQL and relational table models.


What other technologies should I be familiar with?

You should be familiar with Java, of course ;-) and have at least some basic knowledge of Relational Database Management Systems (RDBMSs) and SQL.


What happens if I don't like the training material?

Don't worry. Just send an email to thorben@www.thoughts-on-java.org within the first 30 days after your registration and you'll get your money back.


Didn't find the answer you're looking for?

Let's talk about it. Please send me an email to thorben@www.thoughts-on-java.org.