Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql persistence.xml

<persistence-unit name="NewPersistenceUnit">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>com.example.MyApp.models.ProductsEntity</class>
    ...

    <properties>
        <property name="eclipselink.jdbc.url" value="jdbc:mysql://localhost:3306/database"/>
        <property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
        <property name="eclipselink.jdbc.user" value="root"/>
        <property name="eclipselink.jdbc.password" value="root"/>
    </properties>
</persistence-unit>
Source by www.jetbrains.com #
 
PREVIOUS NEXT
Tagged: #mysql
ADD COMMENT
Topic
Name
8+3 =