Class SnakeCaseNamingStrategy
java.lang.Object
org.springframework.data.cassandra.core.mapping.SnakeCaseNamingStrategy
- All Implemented Interfaces:
NamingStrategy
Naming strategy that renders CamelCase name parts to snake_case.
- Since:
- 3.0
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from interface org.springframework.data.cassandra.core.mapping.NamingStrategy
CASE_SENSITIVE, INSTANCE, SNAKE_CASE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumnName
(CassandraPersistentProperty property) UsesPersistentProperty.getName()
and separates camel case parts with '_'.getTableName
(CassandraPersistentEntity<?> entity) UsesClass.getSimpleName()
and separates camel case parts with '_'.getUserDefinedTypeName
(CassandraPersistentEntity<?> entity) UsesClass.getSimpleName()
and separates camel case parts with '_'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.cassandra.core.mapping.NamingStrategy
transform
-
Constructor Details
-
SnakeCaseNamingStrategy
public SnakeCaseNamingStrategy()
-
-
Method Details
-
getTableName
UsesClass.getSimpleName()
and separates camel case parts with '_'.- Specified by:
getTableName
in interfaceNamingStrategy
-
getUserDefinedTypeName
UsesClass.getSimpleName()
and separates camel case parts with '_'.- Specified by:
getUserDefinedTypeName
in interfaceNamingStrategy
-
getColumnName
UsesPersistentProperty.getName()
and separates camel case parts with '_'.- Specified by:
getColumnName
in interfaceNamingStrategy
-