changes for hibernate4.1.3