| I'm not sure what this means. There is no way to enforce at compile time that Strings passed to one method are "prefixed" and those passed to another are not. The issue here has to do with the hibernate.cache.region_prefix setting. As an example, let's say we have an application with a config setting hibernate.cache.region_prefix = abc and data all cached in a single region named "xyz". When the application needs to refer to a region (e.g. Statistics#getSecondLevelCacheStatistics), it needs to pass "xyz" where when we delegate this call to the cache provider we will pass "abc.xyz". All in all, I am not sure how a compile-time "checker" can help there. |