column2.setName( new LocalizedString( "en_US", "Sales Rep" ) );
column2.setDescription( new LocalizedString( "en_US", "Sales Rep Employee Number" ) );
column2.setDataType( DataType.NUMERIC );
table.getPhysicalColumns().add( column2 );
LogicalModel logicalModel = new LogicalModel();
logicalModel.setPhysicalModel( model );
logicalModel.setId( "MODEL" );
logicalModel.setName( new LocalizedString( "en_US", "My Model" ) );
logicalModel.setDescription( new LocalizedString( "en_US", "A Description of the Model" ) );
LogicalTable logicalTable = new LogicalTable();
logicalTable.setId( "LT" );
logicalTable.setPhysicalTable( table );
logicalModel.getLogicalTables().add( logicalTable );
LogicalColumn logicalColumn = new LogicalColumn();
logicalColumn.setId( "LC_CUSTOMERNAME" );
logicalColumn.setPhysicalColumn( column );
logicalColumn.setLogicalTable( logicalTable );
logicalTable.addLogicalColumn( logicalColumn );
LogicalColumn logicalColumn2 = new LogicalColumn();
logicalColumn2.setId( "LC_SALESREP" );
logicalColumn2.setPhysicalColumn( column2 );
logicalColumn2.setLogicalTable( logicalTable );
logicalTable.addLogicalColumn( logicalColumn2 );
Category mainCategory = new Category();
mainCategory.setId( "CATEGORY" );
mainCategory.setName( new LocalizedString( "en_US", "Category" ) );
mainCategory.addLogicalColumn( logicalColumn );
mainCategory.addLogicalColumn( logicalColumn2 );
logicalModel.getCategories().add( mainCategory );
Domain domain = new Domain();
domain.setId( "DOMAIN" );
domain.addPhysicalModel( model );
domain.addLogicalModel( logicalModel );