public class SnakeCaseNamingStrategy extends Object implements NamingStrategy
INSTANCE, SNAKE_CASE
Constructor and Description |
---|
SnakeCaseNamingStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getColumnName(CassandraPersistentProperty property)
Uses
PersistentProperty.getName() and separates camel case parts with '_'. |
String |
getTableName(CassandraPersistentEntity<?> entity)
Uses
Class.getSimpleName() and separates camel case parts with '_'. |
String |
getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
Uses
Class.getSimpleName() and separates camel case parts with '_'. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform
public String getTableName(CassandraPersistentEntity<?> entity)
Class.getSimpleName()
and separates camel case parts with '_'.getTableName
in interface NamingStrategy
public String getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
Class.getSimpleName()
and separates camel case parts with '_'.getUserDefinedTypeName
in interface NamingStrategy
public String getColumnName(CassandraPersistentProperty property)
PersistentProperty.getName()
and separates camel case parts with '_'.getColumnName
in interface NamingStrategy
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.