Added Hibernate support