HHH-17460 - Ongoing JPA 32 work
This commit is contained in:
parent
8fe3d9e6aa
commit
1104b8a9b8
|
@ -15,8 +15,11 @@ dependencies {
|
||||||
|
|
||||||
implementation jakartaLibs.jaxbApi
|
implementation jakartaLibs.jaxbApi
|
||||||
implementation jakartaLibs.jaxb
|
implementation jakartaLibs.jaxb
|
||||||
implementation libs.hibernateModels
|
|
||||||
implementation libs.jandex
|
implementation libs.jandex
|
||||||
|
implementation libs.hcann
|
||||||
|
|
||||||
|
implementation "org.hibernate.common:hibernate-commons-annotations:6.0.6.Final"
|
||||||
|
|
||||||
|
|
||||||
compileOnly libs.ant
|
compileOnly libs.ant
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class EnversMetadataBuildingContextImpl implements EnversMetadataBuilding
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ReflectionManager getReflectionManager() {
|
public ReflectionManager getReflectionManager() {
|
||||||
return metadataCollector.getBootstrapContext().getReflectionManager();
|
return configuration.getReflectionManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -12,6 +12,7 @@ import java.util.Properties;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
import org.hibernate.annotations.common.reflection.ReflectionManager;
|
import org.hibernate.annotations.common.reflection.ReflectionManager;
|
||||||
|
import org.hibernate.annotations.common.reflection.java.JavaReflectionManager;
|
||||||
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
|
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
|
||||||
import org.hibernate.boot.registry.selector.spi.StrategySelector;
|
import org.hibernate.boot.registry.selector.spi.StrategySelector;
|
||||||
import org.hibernate.boot.spi.MetadataImplementor;
|
import org.hibernate.boot.spi.MetadataImplementor;
|
||||||
|
@ -74,6 +75,7 @@ public class Configuration {
|
||||||
private final boolean globalLegacyRelationTargetNotFound;
|
private final boolean globalLegacyRelationTargetNotFound;
|
||||||
|
|
||||||
private final boolean trackEntitiesChanged;
|
private final boolean trackEntitiesChanged;
|
||||||
|
private final JavaReflectionManager reflectionManager;
|
||||||
private boolean trackEntitiesOverride;
|
private boolean trackEntitiesOverride;
|
||||||
|
|
||||||
private final String auditTablePrefix;
|
private final String auditTablePrefix;
|
||||||
|
@ -185,13 +187,14 @@ public class Configuration {
|
||||||
|
|
||||||
// todo: there are places that need bits built from the revinfo entity configuration
|
// todo: there are places that need bits built from the revinfo entity configuration
|
||||||
// this exists here as a way to pass it down in an immutable way to any consumer of this class
|
// this exists here as a way to pass it down in an immutable way to any consumer of this class
|
||||||
final ReflectionManager reflectionManager =
|
this.reflectionManager = new JavaReflectionManager();
|
||||||
metadata.getMetadataBuildingOptions().getTypeConfiguration()
|
|
||||||
.getMetadataBuildingContext().getBootstrapContext()
|
|
||||||
.getReflectionManager();
|
|
||||||
this.revisionInfo = new RevisionInfoConfiguration( this, metadata, reflectionManager );
|
this.revisionInfo = new RevisionInfoConfiguration( this, metadata, reflectionManager );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JavaReflectionManager getReflectionManager() {
|
||||||
|
return reflectionManager;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isGenerateRevisionsForCollections() {
|
public boolean isGenerateRevisionsForCollections() {
|
||||||
return generateRevisionsForCollections;
|
return generateRevisionsForCollections;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue