Add hibernate support in framework