return em.find(YFDish.class, id);
}
@Override
public List<YFDish> getDishByDishCategory(Long dishCategoryId) {
HibernateEntityManager hem = (HibernateEntityManager) em.getDelegate();
Criteria criteria = hem.getSession().createCriteria(YFDish.class);
criteria.createAlias("themes", "t")
.add(Restrictions.eq("dishCategory.id", dishCategoryId))
.add(Restrictions.eq("t.active", true));