5
5
package org .hibernate .cache .spi ;
6
6
7
7
import org .hibernate .internal .log .SubSystemLogging ;
8
- import org .hibernate .metamodel .model .domain .NavigableRole ;
9
8
10
9
import org .jboss .logging .BasicLogger ;
11
10
import org .jboss .logging .Logger ;
@@ -37,15 +36,15 @@ public interface SecondLevelCacheLogger extends BasicLogger {
37
36
38
37
@ LogMessage (level = WARN )
39
38
@ Message (
40
- value = "Attempt to restart an already started RegionFactory. Use sessionFactory.close() between " +
41
- "repeated calls to buildSessionFactory. Using previously created RegionFactory." ,
39
+ value = "Attempt to start an already- started RegionFactory, probably because a SessionFactory was not closed. " +
40
+ " Using previously created RegionFactory." ,
42
41
id = NAMESPACE + 1
43
42
)
44
43
void attemptToStartAlreadyStartedCacheProvider ();
45
44
46
45
@ LogMessage (level = WARN )
47
46
@ Message (
48
- value = "Attempt to restop an already stopped JCacheRegionFactory." ,
47
+ value = "Attempt to stop an already- stopped JCacheRegionFactory." ,
49
48
id = NAMESPACE + 2
50
49
)
51
50
void attemptToStopAlreadyStoppedCacheProvider ();
@@ -55,33 +54,27 @@ public interface SecondLevelCacheLogger extends BasicLogger {
55
54
value = "Read-only caching was requested for mutable entity [%s]" ,
56
55
id = NAMESPACE + 3
57
56
)
58
- void readOnlyCachingMutableEntity (NavigableRole navigableRole );
57
+ void readOnlyCachingMutableEntity (String entity );
59
58
60
59
@ LogMessage ( level = WARN )
61
60
@ Message (
62
61
value = "Read-only caching was requested for mutable natural-id for entity [%s]" ,
63
62
id = NAMESPACE + 4
64
63
)
65
- void readOnlyCachingMutableNaturalId (NavigableRole navigableRole );
64
+ void readOnlyCachingMutableNaturalId (String entity );
66
65
67
- /**
68
- * Log a message (WARN) about expiry of soft-locked region.
69
- */
70
66
@ LogMessage (level = INFO )
71
67
@ Message (
72
- value = "Cache[%s] Key[%s]\n " +
73
- "A soft-locked cache entry was expired by the underlying cache. If this happens regularly you " +
74
- "should consider increasing the cache timeouts and/or capacity limits" ,
68
+ value = "A soft-locked cache entry in region [%s] with key [%s] was expired by the underlying cache." +
69
+ " If this happens regularly, consider increasing the cache timeouts and/or capacity limits." ,
75
70
id = NAMESPACE + 5
76
71
)
77
72
void softLockedCacheExpired (String regionName , Object key );
78
73
79
74
@ LogMessage (level = WARN )
80
75
@ Message (
81
- value = "Missing cache[%1$s] was created on-the-fly." +
82
- " The created cache will use a provider-specific default configuration:" +
83
- " make sure you defined one." +
84
- " You can disable this warning by setting '%2$s' to '%3$s'." ,
76
+ value = "Missing cache region [%1$s] was created with provider-specific default policies." +
77
+ " Explicitly configure the region and its policies, or disable this warning by setting '%2$s' to '%3$s'." ,
85
78
id = NAMESPACE + 6
86
79
)
87
80
@ SuppressWarnings ( "unused" ) // used by hibernate-jcache
@@ -90,19 +83,19 @@ public interface SecondLevelCacheLogger extends BasicLogger {
90
83
@ LogMessage (level = WARN )
91
84
@ Message (
92
85
value = "Using legacy cache name [%2$s] because configuration could not be found for cache [%1$s]." +
93
- " Update your configuration to rename cache [%2$s] to [%1$s]." ,
86
+ " Update configuration to rename cache [%2$s] to [%1$s]." ,
94
87
id = NAMESPACE + 7
95
88
)
96
89
@ SuppressWarnings ( "unused" ) // used by hibernate-jcache
97
90
void usingLegacyCacheName (String currentName , String legacyName );
98
91
99
92
@ LogMessage (level = WARN )
100
93
@ Message (
101
- value = "Cache [%1$s] uses the [ %2$s] access type, but [%3$s] does not support it natively ." +
102
- " Make sure your cache implementation supports JTA transactions." ,
94
+ value = "Cache region [%1$s] has the access type ' %2$s' which is not supported by [%3$s]." +
95
+ " Ensure cache implementation supports JTA transactions." ,
103
96
id = NAMESPACE + 8
104
97
)
105
98
@ SuppressWarnings ( "unused" ) // used by hibernate-jcache
106
- void nonStandardSupportForAccessType (String key , String accessType , String regionName );
99
+ void nonStandardSupportForAccessType (String regionName , String accessType , String regionFactoryClass );
107
100
108
101
}
0 commit comments