Sample Hibernate code for beginners