added hibernate stuff - didnt try if it works, good luck