hibernate exceptions catched.