@Test public void testUserCreation() { UserPO userPO = userDao.createAndInsert(ROOT_EMAIL); userDao.remove(userPO); }
@Override public UserPO createAndInsert(String login) { UserPO result = create(); result.setId(uuidGenerator.generate()); result.setLogin(login); insert(result); return result; }
UserDaoJpa extends GenericJPADao<UserPO> implements UserDao { @Override public UserPO createAndInsert(String login) { UserPO result = create(); result.setId(uuidGenerator.generate()); result.setLogin(login); insert(result); return result; } }
UserDaoJpa extends GenericJPADao<UserPO> implements UserDao { @Override public UserPO createAndInsert(String login) { UserPO result = create(); result.setId(uuidGenerator.generate()); result.setLogin(login); insert(result); return result; } UserDaoJpa(); }
UserDaoJpa extends GenericJPADao<UserPO> implements UserDao { @Override public UserPO createAndInsert(String login) { UserPO result = create(); result.setId(uuidGenerator.generate()); result.setLogin(login); insert(result); return result; } UserDaoJpa(); @Override UserPO createAndInsert(String login); @Override UserPO getByLogin(String login); }
UserDaoJpa extends GenericJPADao<UserPO> implements UserDao { @Override public UserPO createAndInsert(String login) { UserPO result = create(); result.setId(uuidGenerator.generate()); result.setLogin(login); insert(result); return result; } UserDaoJpa(); @Override UserPO createAndInsert(String login); @Override UserPO getByLogin(String login);  }