add hibernate code