Hibernate config working