public void createUser()

in src/main/java/com/epam/digital/data/platform/report/service/UserService.java [40:49]


  public void createUser(Role role) {
    try (Connection connection = dataSource.getConnection();
        PreparedStatement statement = connection.prepareCall(CREATE_ROLE)) {
      statement.setString(1, buildUserNameFor(role.getName()));
      statement.setString(2, role.getPassword());
      statement.execute();
    } catch (SQLException e) {
      throw new DatabaseUserException("Could not create user", e);
    }
  }