public void setDeletedById(Integer id, boolean isDeleted) {
        String query = "update Task set isDeleted = :isDeleted where id = :taskId";
        sessionFactory.getCurrentSession().createQuery(query)
                .setInteger("taskId", id)
                .setBoolean("isDeleted", isDeleted)
                .executeUpdate();
    }