Hibernate: Source working, code adaptions according to ontology