A TableMappings implementation that converts CQL column names in all-lowercase identifiers with underscores (snake case) to camel case (initial lowercase letter) property names.

The conversion is performed without any checks for the source format, you should make sure that the source format is snake case for CQL identifiers and camel case for properties.

Constructor

new

UnderscoreCqlToCamelCaseMappings

()

Creates a new instance of UnderscoreCqlToCamelCaseMappings

Methods

getColumnName

(String propName)

Converts a property name in camel case to snake case.

Parameters:
Name Type Description
propName String

Name of the property to convert to snake case.

Returns:
Type Description
String

getPropertyName

(String columnName)

Converts a column name in snake case to camel case.

Parameters:
Name Type Description
columnName String

The column name to convert to camel case.

Returns:
Type Description
String