org.hibernate.cache.NoCacheRegionFactoryAvailableException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.cache;
import org.hibernate.cfg.Environment;
/**
* Indicates a condition where a second-level cache implementation was expected to be available, but
* none was found on the classpath.
*
* @author Steve Ebersole
*/
public class NoCacheRegionFactoryAvailableException extends CacheException {
private static final String MSG = String.format(
"Second-level cache is used in the application, but property %s is not given; " +
"please either disable second level cache or set correct region factory using the %s setting " +
"and make sure the second level cache provider (hibernate-infinispan, e.g.) is available on the " +
"classpath.",
Environment.CACHE_REGION_FACTORY,
Environment.CACHE_REGION_FACTORY
);
/**
* Constructs a NoCacheRegionFactoryAvailableException with a standard message.
*/
public NoCacheRegionFactoryAvailableException() {
super( MSG );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy