}
iteration = null;
}
}
List projects = session.find("from project in " + Project.class);
XPlannerLoginModule encryptor = new XPlannerLoginModule(new HashMap());
for (int i = 0; i < personCount; i++) {
Person person = new Person();
session.save(person);
person.setName("Person " + person.getId());
String initials = "P" + person.getId();
person.setInitials(initials);
person.setPassword(encryptor.encodePassword(initials, null));
Role role = getRole(session, "sysadmin");
for (int j = 0; j < projects.size(); j++) {
Project project = (Project)projects.get(j);
session.save(new RoleAssociation(project.getId(), person.getId(), role.getId()));
}