public String inferCQLColumnName(Field field, NamingStrategy namingStrategy) {
final String columnName = field.getName();
log.trace("Inferring property columnName for property {}", columnName);
final Column column = field.getAnnotation(Column.class);
final Id id = field.getAnnotation(Id.class);
if (column != null) {
return determineColumnNameUsingStrategy(column.name(), columnName, namingStrategy);
} else if (id != null) {
return determineColumnNameUsingStrategy(id.name(), columnName, namingStrategy);
} else {
return applyNamingStrategy(columnName, namingStrategy);
}
}