Hibernate4 support