/jpa-hibernate-interceptors

Experimenting with JPA Hibernate interceptors.

Primary LanguageJava

jpa-hibernate-interceptors

Experimenting with JPA Hibernate interceptors.

Useful links:

Pros

  • More fined grained access to 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 intercepts.
  • Greater understanding of the persistence lifecycle required.
  • Can be difficult to configure in a SpringBoot environment.
  • Hibernate specific.