The JPA part of the final project