Hibernate integration working