Class JakartaHibernateEnhancerProvider
java.lang.Object
persist.jakarta.spi.JakartaPersistenceServiceProvider
persist.hibernate.enhance.jakarta.JakartaHibernateEnhancerProvider
- All Implemented Interfaces:
PersistenceServiceProvider,HibernateEnhancerProvider
public class JakartaHibernateEnhancerProvider
extends JakartaPersistenceServiceProvider
implements HibernateEnhancerProvider
HibernateEnhancerProvider implementation for the Jakarta
Persistence namespace ("jakarta").
This provider is registered as a ServiceLoader
provider and delegates to JakartaHibernateEnhancer for
bytecode enhancement using Hibernate ORM 6.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newJakartaHibernateEnhancerProvider. -
Method Summary
Modifier and TypeMethodDescriptiongetEnhancer(File classesDir, Set<File> classpathFiles, Map<HibernateEnhancer.Option, Boolean> options) Creates aHibernateEnhancerconfigured with the given classpath and enhancement options.Methods inherited from class persist.jakarta.spi.JakartaPersistenceServiceProvider
getSupportedNamespaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface persist.api.spi.PersistenceServiceProvider
getSupportedNamespace
-
Constructor Details
-
JakartaHibernateEnhancerProvider
public JakartaHibernateEnhancerProvider()Creates a newJakartaHibernateEnhancerProvider.
-
-
Method Details
-
getEnhancer
public HibernateEnhancer getEnhancer(File classesDir, Set<File> classpathFiles, Map<HibernateEnhancer.Option, Boolean> options) Creates aHibernateEnhancerconfigured with the given classpath and enhancement options.- Specified by:
getEnhancerin interfaceHibernateEnhancerProvider- Parameters:
classesDir- the directory containing compiled entity class filesclasspathFiles- additional classpath entries required for enhancement (e.g. JPA API and Hibernate JARs)options- a map ofHibernateEnhancer.Optionflags controlling which transformations are applied- Returns:
- a new enhancer instance
-