Company gvc = Company.createCompany(ec, "Global Village Consulting");
Company apple = Company.createCompany(ec, "Apple");
Company logicsquad = Company.createCompany(ec, "Logic Squad");
ec.saveChanges();
Department gvcDev = Department.createDepartment(ec, "123456", "GVC Development", gvc);
Department logicDev = Department.createDepartment(ec, "987654321", "Logic Squad Development", logicsquad);
ec.saveChanges();
NSArray<Person> allPersons = Person.fetchAllPersons(ec);
for ( Person aPerson : allPersons) {
Partial_AuthenticatedPerson auth = aPerson.partialForClass(Partial_AuthenticatedPerson.class);