Minor refactoring and tested hibernate (+ schema export) with a test
entity.