finished integration with JPA and Hibernate