public static Column addColumn(Table table, String fieldName, ColumnType type, boolean nativeCase) { String physicalName = table.getDialect().getColumnName(fieldName); if (!nativeCase && fieldName.length() == physicalName.length()) { // we can keep the name specified in the config physicalName = fieldName; } Column column = new Column(table, physicalName, type, fieldName); return ((TableImpl) table).addColumn(fieldName, column); }
@Override public Column addColumn(String name, ColumnType type, String key, Model model) { String physicalName = dialect.getColumnName(name); Column column = new Column(this, physicalName, type, key); return addColumn(name, column); }
protected Column addColumn(String columnName, ColumnType type) { String colPhysicalName = dialect.getColumnName(columnName); Column column = new Column(table, colPhysicalName, type, columnName); return table.addColumn(column.getKey(), column); }