add hibernate
fix some mistake
and the programe can be running now