Code written while learning Hibernate.