Package io.micronaut.data.model.naming
Class NamingStrategies.KebabCase
java.lang.Object
io.micronaut.data.model.naming.NamingStrategies.KebabCase
- All Implemented Interfaces:
NamingStrategy
- Enclosing class:
- NamingStrategies
Example: foo-bar.
-
Field Summary
Fields inherited from interface io.micronaut.data.model.naming.NamingStrategy
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
mappedName
(@NonNull String name) Return the mapped name for the given name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.model.naming.NamingStrategy
getForeignKeySuffix, mappedJoinTableColumn, mappedName, mappedName, mappedName, mappedName, mappedName
-
Constructor Details
-
KebabCase
public KebabCase()
-
-
Method Details
-
mappedName
Description copied from interface:NamingStrategy
Return the mapped name for the given name.- Specified by:
mappedName
in interfaceNamingStrategy
- Parameters:
name
- The name- Returns:
- The mapped name
-