mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-4659 - Add support for standard declarative cache (@Cacheable)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18606 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
d24ed1a1d3
commit
9fc7794134
@ -780,6 +780,9 @@ private static Cache determineCacheSettings(XClass clazzToProcess, ExtendedMappi
|
||||
SharedCacheMode mode = (SharedCacheMode) mappings.getConfigurationProperties().get(
|
||||
"javax.persistence.sharedCache.mode"
|
||||
);
|
||||
if ( mode == null ) {
|
||||
mode = SharedCacheMode.UNSPECIFIED;
|
||||
}
|
||||
switch ( mode ) {
|
||||
case ALL: {
|
||||
cacheAnn = buildCacheMock( clazzToProcess.getName(), mappings );
|
||||
|
Loading…
x
Reference in New Issue
Block a user