Skip to content

Instantly share code, notes, and snippets.

@miere
Created March 19, 2015 22:30
Show Gist options
  • Select an option

  • Save miere/0c4b61b8c8eb3a39f1a6 to your computer and use it in GitHub Desktop.

Select an option

Save miere/0c4b61b8c8eb3a39f1a6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="Eclipselink_JPA" transaction-type="RESOURCE_LOCAL">
<!-- which one will be the Persistence Provider that will provide the JPA implementation? -->
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<!-- you do not need validations right now -->
<validation-mode>NONE</validation-mode>
<!-- your awesome mapped classes will be here -->
<class>com.tutorialspoint.eclipselink.entity.Employee</class>
<!-- oh yeah, the proprierties -->
<properties>
<property name="javax.persistence.jdbc.driver" value="org.sqlite.JDBC" />
<property name="javax.persistence.jdbc.url" value="jdbc:sqlite:dbs/test.db" />
<property name="eclipselink.logging.level" value="ALL" />
<property name="eclipselink.ddl-generation" value="create-tables" />
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment