First attempt to make hibernate work.