The Hibernate 4.x documentation is misleading. However, it is no longer maintained, and the Hibernate 5.x documentation which was rewritten from scratch no longer shows any Hibernate 3.x example.