generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/Model.java
public Table findTable(String tableName) {
		
		if (tableName == null) {
			return null;
		}
		if (tableName.isEmpty()) {
			return null;
		}
		for (Package myPackage : this.packages) {
			for (Table table : myPackage.tables) {
				if (table.originalName.equals(tableName)) {
					return table;
				}
			}
		}
		throw new TableNotFoundException("Invalid table reference : "
				+ tableName);
	}
public Table findTable(String tableName) {
		
		if (tableName == null) {
			return null;
		}
		if (tableName.isEmpty()) {
			return null;
		}
		for (Package myPackage : this.packages) {
			for (Table table : myPackage.tables) {
				if (table.originalName.equals(tableName)) {
					return table;
				}
			}
		}
		throw new TableNotFoundException("Invalid table reference : "
				+ tableName);
	}
public Table findTable ( String tableName ) { if ( tableName == null ) { return null ; } if ( tableName . isEmpty ( ) ) { return null ; } for ( Package myPackage : this . packages ) { for ( Table table : myPackage . tables ) { if ( table . originalName . equals ( tableName ) ) { return table ; } } } throw new TableNotFoundException ( "Invalid table reference : " + tableName ) ; }
run through all the tables until it is found
@param tableName
@return
@throws TableNotFoundException if no table with the corresponding name is found
run through all the tables until it is found