add hibernate support