added hibernate support