protected List<E> list(Criteria criteria) throws HibernateException { return super.list(criteria); }
protected List<E> list(Query query) throws HibernateException { return super.list(query); }
@Override public Set<GlobalPropertyDomain> search(final String name, final String propertyType) { final Session session = sessionFactory.getCurrentSession(); final Criteria criteria = session.createCriteria(GlobalPropertyDomain.class); criteria.add(Restrictions.eq("deleted", false)); if (!Strings.isNullOrEmpty(name)) { criteria.add(Restrictions.eq("name", name)); } if (!Strings.isNullOrEmpty(propertyType)) { criteria.add(Restrictions.eq("type", propertyType)); } return Sets.newHashSet(super.list(criteria)); }