RelationsValidator validator = validatorFor(ordersTab, orderLogTab, orderDetailsTab, productsTab);
validator.validate(rels);
}
private TableRelationship orderToOrderDetails() {
TableRelationship r = new TableRelationship(ordersTab, orderDetailsTab);
r.addFieldRelationship(ordersTab.getColumn("OrderId"), orderDetailsTab.getColumn("OrderId"));
return r;
}