Hibernate and JPA resources

Some articles and links about Hibernate ORM and JPA.


This article has a detailed explanation about the different cascade options with related tables.

A begginers guide to JPA and Hibernate cascade types


When we have customized types (Java enums for example), it’s necessary to implement type conversors for persisting the type values. This article contains a simple example of type JPA converter:

How to implement a Type Converter

Generated data

A complete example about using the @PrePersist and @PreUpdate annotations for adding auditory data (creation date and author) for objects, using an embedded class:

How to use @PrePersist and @PreUpdate

Logical deletion

An implementation for a “soft delete” using a “deleteboolean field with Hibernate:

The best way to soft delete with Hibernate