Explore the mismatch between object-oriented code and relational tables to understand the need for object-relational mapping (ORM). In this course, instructor Buddhini Samarakkody covers the basics of JPA—shorthand for the Jakarta Persistence API—and shows you how to implement it in the popular ORM framework, Hibernate. Learn how to define an entity, map fields to columns, specify primary and composite keys, utilize annotations, map different types of entity relationships, execute basic CRUD operations, and more. Along the way, Buddhini offers insights on how to work with different types of queries and use a wide variety of constructs to perform key tasks. By the end of this course, you’ll also be equipped with some of the best practices for applying the repository pattern to streamline and optimize your code.
This course is integrated with GitHub Codespaces, an instant cloud developer environment that offers all the functionality of your favorite IDE without the need for any local machine setup. With GitHub Codespaces, you can get hands-on practice from any machine, at any time-all while using a tool that you’ll likely encounter in the workplace. Check out the “Development environment” video to learn how to get started.
Learn More