Nasty Hibernate Tutorial. Treat with extreme care