DatabaseMap databaseMap = Torque.getDatabaseMap("postgresql");
if (!databaseMap.containsTable("TABLE"))
{
TableMap tableMap = databaseMap.addTable("TABLE");
{
ColumnMap columnMap1 = new ColumnMap("COLUMN1", tableMap);
columnMap1.setType(new String(""));
columnMap1.setJavaType("String");
tableMap.addColumn(columnMap1);
}
{
ColumnMap columnMap2 = new ColumnMap("COLUMN2", tableMap);
columnMap2.setType(new String(""));
columnMap2.setJavaType("String");
tableMap.addColumn(columnMap2);
}
{
ColumnMap columnMap3 = new ColumnMap("COLUMN3", tableMap);
columnMap3.setType(new String(""));
columnMap3.setJavaType("String");
tableMap.addColumn(columnMap3);
}
{
ColumnMap columnMap4 = new ColumnMap("COLUMN4", tableMap);
columnMap4.setType(new Integer(0));
columnMap4.setJavaType("Integer");
tableMap.addColumn(columnMap4);
}
}
}