1<persistence-unit name="NewPersistenceUnit">
2 <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
3 <class>com.example.MyApp.models.ProductsEntity</class>
4 ...
5
6 <properties>
7 <property name="eclipselink.jdbc.url" value="jdbc:mysql://localhost:3306/database"/>
8 <property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
9 <property name="eclipselink.jdbc.user" value="root"/>
10 <property name="eclipselink.jdbc.password" value="root"/>
11 </properties>
12</persistence-unit>