
io.quarkus.hibernate.orm.runtime.StaticInitHibernatePersistenceProviderResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-hibernate-orm Show documentation
Show all versions of quarkus-hibernate-orm Show documentation
Define your persistent model with Hibernate ORM and JPA
package io.quarkus.hibernate.orm.runtime;
import java.util.List;
import jakarta.persistence.spi.PersistenceProvider;
import jakarta.persistence.spi.PersistenceProviderResolver;
/**
* During the static init phase, we don't access the PersistenceProviderResolver.
*/
final class StaticInitHibernatePersistenceProviderResolver implements PersistenceProviderResolver {
@Override
public List getPersistenceProviders() {
throw new IllegalStateException("Persistence providers are not available during the static init phase.");
}
@Override
public void clearCachedProviders() {
throw new IllegalStateException("Persistence providers are not available during the static init phase.");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy