Criteria criteria = session.createCriteria(Employee.class); criteria.add(Restrictions.ge("salary", 50000)); ListIn this code example, we create a Criteria object for the Employee class and add a restriction to filter the employees with a salary greater than or equal to 50000. Finally, we retrieve the results using the list() method. The Restrictions class also provides methods for creating conditions like equal to, less than, less than or equal to, etc. These methods can be combined using logical operators like and, or, and not to create complex query conditions. The org.hibernate.criterion.Restrictions class is a part of the Hibernate ORM library.employees = criteria.list();