Add some Hibernate magic