JPA Tutorial

3
929
JPA with Hibernate tutorial

Technologies Used in all of examples :

  • JPA 2.1
  • Hibernate 5.2.6
  • MySql 8.0
  • Maven 3
  • Spring Tool Suite (STS) 3.9.8
  • Java 1.8

1. Setting Up Environment to test examples

  1. Setting Up Maven
  2. Setting Up Mysql Database
  3. Importing Maven Project into Eclipse

2. JPA Introduction

  1. What is JPA (Java Persistence API)?
  2. Why Object Relational Mapping?
  3. Basic terminology and JPA Architecture
  4. Configuring JPA in Project

3. JPA CRUD and Basic Operations

  1. How to persist an Entity in Database?
  2. How to retrieve an Entity from Database?
  3. How to update an Entity in Database?
  4. How to remove an Entity from Database using JPA?
  5. What is the Persistence Object lifecycle?
  6. Merge operation in JPA

4. Access Types & Simple Mapping

  1. How to Save images or files using JPA?
  2. Enumerated Types
  3. Temporal Types
  4. @Transient – Annotating non-persistent fields in entity
  5. Field Access vs Property Access

5. Collection Mapping

  1. Entity Types vs Value Types
  2. Mapping Composite(Embeddable) Types
  3. Mapping Collection Of Basic Value Types
  4. Mapping a Collection of Composite(Embeddable) value types

6. Associations Mapping

  1. One-to-One Unidirectional
  2. One-to-One Bidirectional
  3. One-to-Many Unidirectional
  4. One-to-Many Bidirectional
  5. Many-to-Many Unidirectional
  6. Many-to-Many Bidirectional

3 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here