add basic hibernate