Added some hibernate stuff