The idea of mapping your queries on your entities and not on your table names is to provide a layer of abstraction over your physical model.
Also, you are right, You do not have to do:
Code:
List reqs = HibernateManager.execRequeteMaison("FROM" + Requete.class.getName());
It would work with Requête only:
Code:
List reqs = HibernateManager.execRequeteMaison("FROM Requete");
It was more to make a point that the entity is what matters, not the table name. Also, the package name would only become important if you would map several entities with the same class name but in different packages.
As far as the documentation goes, knowing now the answer, re-read the example. You will see that they always map their queries to the entities, and not to the table name (If you find an error, post it)
Hope this answers your questions.
Have a nice day,
Vincent.