session.beginTransaction();
Criteria criteria = session.createCriteria(Role.class)
.add(Restrictions.eq("tipo", "Sistema"));
List<Role> roles = criteria.list();
criteria = session.createCriteria(Usuario.class)
.add(Restrictions.in("role", roles));
usuarios = (Collection<Usuario>) criteria.list();