public void setFinishedById(Integer id, boolean isFinished) {
        String query = "UPDATE Step SET isFinished = :isFinished WHERE id = :stepId";
        sessionFactory.getCurrentSession().createQuery(query)
                .setInteger("stepId", id)
                .setBoolean("isFinished", isFinished)
                .executeUpdate();
    }