mysql persistence xml

Solutions on MaxInterview for mysql persistence xml by the best coders in the world

showing results for - "mysql persistence xml"
Ilan
18 Feb 2016
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>