What is the difference between a criteria, a predicate, and a specification?

Viewed 19804
2 Answers

NOT from API Docs but as I see it:

Criteria is an abstract concept, kind a collection of Predicates. CriteriaQuery has all the Criteria set as Predicates.

As Criteria is a plural of Criterion might say that Predicate equals to Criterion.

Spring Specification is meant to be implemented to provide means to use specification pattern when constructing CriteriaQueries.

Feel free to correct me with - preferably API- documentation.

Related