Ejemplo n.º 1
0
 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();
 }