Package onl.ycode.stormify
Interface NamingPolicy
public interface NamingPolicy
Naming policy for converting class names to table names and field names to column names.
It is possible to create custom policies or use the predefined ones.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NamingPolicy
Use the name as is.static final NamingPolicy
Convert the name to lower case with underscores (snake_case).static final NamingPolicy
Convert the name to upper case with underscores (SCREAMING_SNAKE_CASE). -
Method Summary
-
Field Details
-
camelCase
Use the name as is. -
lowerCaseWithUnderscores
Convert the name to lower case with underscores (snake_case). -
upperCaseWithUnderscores
Convert the name to upper case with underscores (SCREAMING_SNAKE_CASE).
-
-
Method Details
-
convert
Convert a class or field name to a table or column name. By using this method, it is possible to define rules in a central location and free the objects of Annotating manually.- Parameters:
s
- The given Java name- Returns:
- The converted Database name
-