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 Details

    • camelCase

      static final NamingPolicy camelCase
      Use the name as is.
    • lowerCaseWithUnderscores

      static final NamingPolicy lowerCaseWithUnderscores
      Convert the name to lower case with underscores (snake_case).
    • upperCaseWithUnderscores

      static final NamingPolicy upperCaseWithUnderscores
      Convert the name to upper case with underscores (SCREAMING_SNAKE_CASE).
  • Method Details

    • convert

      String convert(String s)
      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