keyspaceName = validateSchemaName(keyspaceName);
return keyspaceName;
}
public String inferTableName(Class<?> entityClass, String canonicalName, NamingStrategy namingStrategy) {
Entity annotation = entityClass.getAnnotation(Entity.class);
String tableName;
if (isNotBlank(annotation.table())) {
tableName = validateSchemaName(applyNamingStrategy(annotation.table(), namingStrategy));
} else {
tableName = validateSchemaName(applyNamingStrategy(extractTableNameFromCanonical(canonicalName), namingStrategy));
}
log.debug("Inferred tableName for entity {} : {}", canonicalName, tableName);
return tableName;