If you need a single way to generate table and column names, you must install MapperRules. {tableName, columnName} PartialFunctions. So, if you want all your tables and columns to be serpentine, include the following two lines in the Boot.scala file:
MapperRules.tableName = (_, name) => StringHelpers.snakify(name)
MapperRules.columnName = (_, name) => StringHelpers.snakify(name)
This avoids the extraneous dbTableName name redefinition pattern for each class.
source
share