@Test public void insertUser() { UserDTO user = new UserDTO(); user.setEnabled(true); user.setPassword("paperoga"); user.setUsername("paperoga"); assertTrue(repo.insertUser(user) > 0); }
public Long insertUser(UserDTO user) { user.setPassword(Cripto.stringToSHA(user.getPassword())); return (Long) insert("insertUser", user); }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { public Long insertUser(UserDTO user) { user.setPassword(Cripto.stringToSHA(user.getPassword())); return (Long) insert("insertUser", user); } }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { public Long insertUser(UserDTO user) { user.setPassword(Cripto.stringToSHA(user.getPassword())); return (Long) insert("insertUser", user); }  }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { public Long insertUser(UserDTO user) { user.setPassword(Cripto.stringToSHA(user.getPassword())); return (Long) insert("insertUser", user); }  UserDTO getUserCredentials(String id); @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); Long insertUser(UserDTO user); Integer updatePassword(UserDTO user); UserAuthoritiesDTO getUserWithAuthorities(String username); UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid); UserView getUser(String id); Integer getUsersNumber(); Boolean disableUser(String id); Object getIdUser(String username); @SuppressWarnings("unchecked") List<UserDTOLight> getDisabledUsers(Pager pager); @SuppressWarnings("unchecked") List<UserDTOLight> getEnabledUsers(Pager pager); Boolean save(UserAuthoritiesDTO user); }
UserRepositoryIbatis extends SqlMapClientTemplate implements UserRepository { public Long insertUser(UserDTO user) { user.setPassword(Cripto.stringToSHA(user.getPassword())); return (Long) insert("insertUser", user); }  UserDTO getUserCredentials(String id); @Autowired @Override void setSqlMapClient(@Qualifier("sqlMapClient") SqlMapClient sqlMapClient); Long insertUser(UserDTO user); Integer updatePassword(UserDTO user); UserAuthoritiesDTO getUserWithAuthorities(String username); UserAuthoritiesDTO getUserWithAuthoritiesByID(Integer sid); UserView getUser(String id); Integer getUsersNumber(); Boolean disableUser(String id); Object getIdUser(String username); @SuppressWarnings("unchecked") List<UserDTOLight> getDisabledUsers(Pager pager); @SuppressWarnings("unchecked") List<UserDTOLight> getEnabledUsers(Pager pager); Boolean save(UserAuthoritiesDTO user);  }