upgrade hibernate to version 4