}
@SuppressWarnings("unchecked")
@Override
public ResultObject getAllBranchesLikeText(String text, int start, int pageSize) {
DetachedCriteria criteria = DetachedCriteria.forClass(Branche.class);
if (!StringUtils.isEmpty(text)) {
criteria.add(Restrictions.ilike("braBezeichnung", text, MatchMode.ANYWHERE));
}
criteria.addOrder(Order.asc("braBezeichnung"));
int totalCount = getHibernateTemplate().findByCriteria(criteria).size();
List<Branche> list = getHibernateTemplate().findByCriteria(criteria, start, pageSize);