Collection roles = new ArrayList();
roles.add(role1);
roles.add(role2);
JDOAdminUser adminUser = new JDOAdminUser("id","login", "mail", roles);
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
pm.makePersistent(adminUser);
pm.currentTransaction().commit();