I am trying to configure hibernate without using the hibernate.cfg.xml file and using annotations instead. It works fine until I activate the second level cache to