Hibernate and JPA resources
Some articles and links about Hibernate ORM and JPA.
CascadeType
This article has a detailed explanation about the different cascade options with related tables.
A begginers guide to JPA and Hibernate cascade types
Conversions
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 “delete
” boolean field
with Hibernate: