public void deleteMealById(long id) {
        Session session = null;
        Transaction tx = null;
        SimpleMealDaoImpl dao = getSimpleMealDaoImpl();

        try {
            session = HbUtil.getSession();
            //TRANSACTION START
            tx = session.beginTransaction();

            SimpleMeal mealToDelete = dao.getSimpleMeal(id);
            dao.deleteSimpleMeal(mealToDelete);
            //delete by Id instead of object?

            tx.commit();
            //TRANSACTION END
            //SESSION CLOSE
        } catch (RuntimeException e) {
            if (tx != null) {
                tx.rollback();
            }
            throw e;
        } finally {
            if (session != null && session.isOpen()) {
                session.close();
            }
        }

    }