Add hibernate support