Migrate to hibernate 4.2.*