Hibernate 4.2.x example refactoring.