Class: UnderscoreCqlToCamelCaseMappings

mapping~UnderscoreCqlToCamelCaseMappings()

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

Implements:
Source:

Methods

getColumnName(propName) → {String}

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.

Implements:
Source:
Returns:
Type
String

getPropertyName(columnName) → {String}

Converts a column name in snake case to camel case.

Parameters:
Name Type Description
columnName String

The column name to convert to camel case.

Implements:
Source:
Returns:
Type
String