Support for Hibernate 3 version