Criterion crit = Restrictions.isNull("propertyName");
Criteria criteria = session.createCriteria(Entity.class); criteria.add(Restrictions.isNull("propertyName")) .add(Restrictions.eq("otherProperty", "value")); List results = criteria.list();This will create a criteria that searches for entities where the "propertyName" property is null and the "otherProperty" property is equal to "value". The list() method will execute the query and return a list of matching entities. The org.hibernate.criterion.Restrictions package is part of the Hibernate core library.