Started to implement hibernate support.