Merge branch 'master' into feature_ui_metadata

This commit is contained in:
Michael Hirsch
2016-07-19 19:12:31 +02:00
2 changed files with 2 additions and 3 deletions

View File

@@ -167,7 +167,6 @@ public class JpaSystemManagement implements CurrentTenantCacheKeyGenerator, Syst
}
@Override
@Cacheable(value = "tenantMetadata", key = "#tenant.toUpperCase()", cacheManager = "directCacheManager")
@Transactional(isolation = Isolation.READ_UNCOMMITTED)
@Modifying
public TenantMetaData getTenantMetadata(final String tenant) {

View File

@@ -96,7 +96,7 @@ public class SecurityContextTenantAware implements TenantAware {
@Override
public int hashCode() {
return (delegate != null) ? delegate.hashCode() : null;
return (delegate != null) ? delegate.hashCode() : -1;
}
@Override
@@ -126,7 +126,7 @@ public class SecurityContextTenantAware implements TenantAware {
@Override
public boolean isAuthenticated() {
return (delegate != null) ? delegate.isAuthenticated() : null;
return (delegate != null) ? delegate.isAuthenticated() : true;
}
@Override