Thread
:
Search in hibernate
View Single Post
#
4
(
permalink
)
05-07-2007, 08:20 AM
goldhouse
Senior Member
Join Date: Mar 2007
Posts: 136
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();
goldhouse
View Public Profile
Send a private message to goldhouse
Find all posts by goldhouse