updating Hibernate Entity Manager from 3.6 to 4.0