recreation of the sample application as outlined in the Hibernate Documentation