Package persist.hibernate.enhance.spi


package persist.hibernate.enhance.spi
SPI for Hibernate bytecode enhancement of JPA entity classes.

This package defines the abstractions used to perform build-time bytecode enhancement on compiled JPA entity classes. The enhancement adds Hibernate-specific instrumentation such as lazy-loading proxies, inline dirty tracking, bi-directional association management, and extended enhancement — eliminating the need for runtime bytecode manipulation.

  • HibernateEnhancer – core interface for enhancing entity class bytes, along with helper methods and the Option enum controlling which transformations are applied.
  • HibernateEnhancerProvider – service-provider interface for obtaining a namespace-specific HibernateEnhancer, discovered via ServiceLoader.

Provider implementations for specific JPA namespaces are shipped in separate modules (e.g. persistence-tools-jakarta and persistence-tools-legacy).

Since:
1.0.0
See Also: