View Single Post
  #4 (permalink)  
Old 05-07-2007, 08:20 AM
goldhouse goldhouse is offline
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
If you are looking for users starting with the given userID you can use the "Criterion" in hibernate .
Like this
Code:
List users = sess.createCriteria(User.class) .add( Restrictions.like("name", userID+"%") ) .list();
Reply With Quote