finished JPA integration