From 9fc77941346bcce533ef978632fa2af0565ba57b Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 22 Jan 2010 12:35:15 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/hibernate/cfg/AnnotationBinder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java b/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java index 9fd616c160..847bf9e318 100644 --- a/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java +++ b/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java @@ -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 );