public class TransformingNamingStrategy extends Object implements NamingStrategy
INSTANCE, SNAKE_CASE
Constructor and Description |
---|
TransformingNamingStrategy(NamingStrategy delegate,
Function<String,String> mappingFunction) |
Modifier and Type | Method and Description |
---|---|
String |
getColumnName(CassandraPersistentProperty property)
Create a column name from the given
property . |
String |
getTableName(CassandraPersistentEntity<?> entity)
Create a table name from the given
CassandraPersistentEntity . |
String |
getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
Create a user-defined type name from the given
CassandraPersistentEntity . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform
public TransformingNamingStrategy(NamingStrategy delegate, Function<String,String> mappingFunction)
public String getTableName(CassandraPersistentEntity<?> entity)
NamingStrategy
CassandraPersistentEntity
.getTableName
in interface NamingStrategy
public String getUserDefinedTypeName(CassandraPersistentEntity<?> entity)
NamingStrategy
CassandraPersistentEntity
.getUserDefinedTypeName
in interface NamingStrategy
public String getColumnName(CassandraPersistentProperty property)
NamingStrategy
property
.getColumnName
in interface NamingStrategy
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.