partial_EmployeePersonTable.addForeignKey("employeeTypeID", "EmployeeType", "id");
departmentTable.addForeignKey("companyID", "Company", "id");
}
public void postUpgrade(EOEditingContext ec, EOModel model) throws Throwable {
EmployeeType employee = EmployeeType.createEmployeeType(ec, "Employee");
EmployeeType contract = EmployeeType.createEmployeeType(ec, "Contractor");
EmployeeType intern = EmployeeType.createEmployeeType(ec, "Intern");
ec.saveChanges();
Company gvc = Company.createCompany(ec, "Global Village Consulting");
Company apple = Company.createCompany(ec, "Apple");
Company logicsquad = Company.createCompany(ec, "Logic Squad");