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:
Steve Ebersole 2010-01-22 12:35:15 +00:00
parent d24ed1a1d3
commit 9fc7794134
1 changed files with 3 additions and 0 deletions

View File

@ -780,6 +780,9 @@ public final class AnnotationBinder {
SharedCacheMode mode = (SharedCacheMode) mappings.getConfigurationProperties().get( SharedCacheMode mode = (SharedCacheMode) mappings.getConfigurationProperties().get(
"javax.persistence.sharedCache.mode" "javax.persistence.sharedCache.mode"
); );
if ( mode == null ) {
mode = SharedCacheMode.UNSPECIFIED;
}
switch ( mode ) { switch ( mode ) {
case ALL: { case ALL: {
cacheAnn = buildCacheMock( clazzToProcess.getName(), mappings ); cacheAnn = buildCacheMock( clazzToProcess.getName(), mappings );