Added JPA Facet to project and fixed the persistence.xml file.