Adding Hibernate support