This repository accompanies the Medium article discussing Applying JPA lifecycle callbacks. Learn how to leverage with annotations to inject custom logic at specific points in an entity's lifecycle.
Read 2 part medium article
PART 1 Applying @PrePersist and @PreUpdate in JPA
PART 2 Applying @PostPersist and @PostUpdate and other JPA lifecycle callbacks.
for a detailed walkthrough.