Skip to content
An example project for demonstrating how to tie JPA annotations to Hibernate lifecycle events.
Java
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
timezra.hibernate.jpa.callbacks
.gitignore
README

README

This project provides code samples to clarify this tutorial: http://timezra.blogspot.com/2011/10/jpa-callbacks-with-hibernate.html

It is a multi-module Maven project. The code can be compiled and the tests run using standard Maven commands, e.g.,
    $> mvn clean package

The timezra.hibernate.jpa.entity-manager-callbacks sub-project contains sample code for using the Hibernate EntityManager, which automatically ties JPA annotations to Hibernate lifecycle events.

The timezra.hibernate.jpa.event-listener-callbacks sub-project contains sample code for manually configuring the Hibernate SessionFactory to recognize JPA annotations and to bind the annotated methods to Hibernate lifecycle events.

Something went wrong with that request. Please try again.