/jpa-hibernate-listeners

Experimenting with JPA Hibernate listeners.

Primary LanguageJava

jpa-hibernate-listeners

Experimenting with JPA Hibernate listeners.

Useful links:

Old listener configuration style:

Pros

  • Complete access to every aspect of the persistence lifecycle.
  • Full access to the entity being loaded / persisted.

Cons

  • Applies to all entites in the persistence session.
  • Can leave the presistence session / entity in a dirty state when you change entity attributes in some events.
  • Comprehensive understanding of the persistence lifecycle required.
  • Can be difficult to configure in a SpringBoot environment.
  • Hibernate specific.