AmberTableCache tableCache = (AmberTableCache) type.getAnnotation(AmberTableCache.class);
if (tableCache != null) {
entityType.getTable().setReadOnly(tableCache.readOnly());
long cacheTimeout = Period.toPeriod(tableCache.timeout());
entityType.getTable().setCacheTimeout(cacheTimeout);
}
}
private void introspectAttributeOverrides(EntityType entityType,