code: public static String getTableName(Class<?> entityClass, NameConverter nameConverter){
          Table table = entityClass.getAnnotation(Table.class);
          if(table != null){
              return table.name();
          } else {
              return nameConverter.entityToTable(entityClass.getName());
          }
      }
docs: Returns the table name from the entity.
  <p>
  <b>Note:</b> This should not be used for Maps as entities.
  <p>
  If the entity class has {@link Table} annotation then this method returns the annotated table name,
  otherwise creates table name from the entity class name using {@link NameConverter}.
  
  @param entityClass the entity class
  @param nameConverter the name converter
  
  @return the table name