}
}
@Override
public YFTable getTable(String tableName, String restaurantName) {
HibernateEntityManager hem = (HibernateEntityManager) em.getDelegate();
Criteria criteria = hem.getSession().createCriteria(YFTable.class);
criteria.createAlias("restaurant", "r")
.add(Restrictions.eq("r.name", restaurantName))
.add(Restrictions.eq("name", tableName));