I don't see any code there which says to use, or not to use, any of the fields of the User class in the generated query. So therefore I don't find it surprising that all of the fields are used.
But perhaps that code is hidden somewhere in that Example class, which I don't see?
At any rate here's a link to a relevant (I hope) tutorial:
Chapter 15. Criteria Queries.