user.getName(), user.getUsername(), user.getPassword());
}
private class UserRowMapper implements ParameterizedRowMapper<User> {
public User mapRow(ResultSet rs, int i) throws SQLException {
return new User(
rs.getLong("id"),
rs.getString("name"),
rs.getString("username"),
rs.getString("password")
);