Skip to content

Instantly share code, notes, and snippets.

@hadson172
Created October 10, 2016 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadson172/94c3d3f69151ecada5244ac93a983ca0 to your computer and use it in GitHub Desktop.
Save hadson172/94c3d3f69151ecada5244ac93a983ca0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1">
<persistence-unit name="CrudPU" transaction-type="RESOURCE_LOCAL">
<class>crudapp.model.Person</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
<property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
<property name="hibernate.connection.url" value="jdbc:h2:./src/test/db/test"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment