org.apereo.cas.nativex.CasHibernateRuntimeHints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cas-server-support-jpa-hibernate Show documentation
Show all versions of cas-server-support-jpa-hibernate Show documentation
cas-server-support-jpa-hibernate
The newest version!
package org.apereo.cas.nativex;
import org.apereo.cas.hibernate.CasHibernatePhysicalNamingStrategy;
import org.apereo.cas.util.nativex.CasRuntimeHintsRegistrar;
import org.hibernate.dialect.Dialect;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.orm.jpa.JpaVendorAdapter;
import java.util.List;
/**
* This is {@link CasHibernateRuntimeHints}.
*
* @author Misagh Moayyed
* @since 7.0.0
*/
public class CasHibernateRuntimeHints implements CasRuntimeHintsRegistrar {
@Override
public void registerHints(final RuntimeHints hints, final ClassLoader classLoader) {
registerReflectionHints(hints, findSubclassesInPackage(Dialect.class, "org.hibernate"));
registerReflectionHints(hints, List.of(JpaVendorAdapter.class, CasHibernatePhysicalNamingStrategy.class));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy