Criteria query example.