If you want to narrow the specific objects that are returned from storage, you use the WHERE clause. Following is the simple syntax of using WHERE clause:
String hql ="FROM Employee E WHERE E.id = 10";
Query query =session.createQuery(hql);
List results =query.list();