fix persistence.xml and complete JPA task.