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 @@ public final class AnnotationBinder {
|
|||
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…
Reference in New Issue