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