JPA Archive

CRUD using JPA on Hibernate, MySQL & Maven

This tutorial explains how to perform a simple CRUD (Created, Read, Update, Delete) using JPA Annotations on Hibernate, Maven and MySQL as Database.

Setting Auditing Columns using JPA Listeners

This tutorial explains the using JPA Listeners such as @prePersist, @preUpdate, @preRemove for setting Auditing Columns of a Table.

Optimistic Locking Versioning in JPA (Annotations)

This tutorial explains Optimistic Locking, simulates the problem and then solves the problem using Optimistic Locking Versioning in Hibernate using JPA Annotations.

Hibernate Inheritance Table per Class Hierarchy using JPA Annotations

An simple tutorial on Hibernate Inheritance Table per Class Hierarchy using JPA Annotations.

JPA Datatypes – Enum, Date, Time and TimeStamp

This Tutorial explains the various JPA Datatypes such as Enum, Temporal Types.

Hibernate Inheritance Table per SubClass using JPA Annotations

An simple tutorial on Hibernate Inheritance Table per SubClass using JPA Annotations.

Generate JPA Annotations/Hibernate Mappings from Database Schema

This tutorial explains how to Reverse Engineer or Generate JPA Annotations/Hibernate Mappings from an existing Database Schema.