now everything works with Hibernate