'How do I make a persistence.xml file?

I am doing a project that I brought over from a GitHub repo, my project says that I don't have a persistence.xml file and I need to use this file for JPA. I am unsure of how to make a new persistence.xml file in my workspace. My requirements are that I have to use Java 16 and JPA 2.1. I have tried making the persistence.xml file through Properties>Project Facets> and clicking "JPA 2.1" and "Java 16".

Here is a screenshot of the Problem tab in Eclipse.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source