Sample code snippet for Hibernate learning made easy