public RecreationCenter findByName(final String name) { Criteria crit = HibernateUtil.getSession().createCriteria(RecreationCenter.class); crit.add(Critere.compose("name", name, Critere.EQUALS)); return (RecreationCenter) crit.uniqueResult(); }