Skip to content

Instantly share code, notes, and snippets.

@thescouser89
Created October 21, 2015 16:48
Show Gist options
  • Save thescouser89/7449d3a0c3f8d85d6a28 to your computer and use it in GitHub Desktop.
Save thescouser89/7449d3a0c3f8d85d6a28 to your computer and use it in GitHub Desktop.
dependency-analysis/application/src/main/application/META-INF/persistence.xml
<?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="relationdbPU">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
<class>org.jboss.da.listings.api.model.WhiteArtifact</class>
<class>org.jboss.da.listings.api.model.BlackArtifact</class>
<properties>
<property name="org.hibernate.FlushMode" value="always" />
<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.format_sql" value="false" />
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment