You want to use an ilike restriction.
Something along the lines of
String value = "jun";
Criteria criteria = session.createCriteria(User.class);
criteria.add(Restrictions.ilike("title", value, MatchMode.ANYWHERE);
should do the trick.
I don't know how efficient it is, and it may well vary depending on your DB (esp as it mimicks something actually available in Postgres, and may use that operator in the postgres dialect). It's probably better than getting everything and filtering in Java though.