upgrade Hibernate from 3.1 to 4.1 and Spring to 3.2.2