Skip to content

Instantly share code, notes, and snippets.

@tvsjazz
Created August 17, 2018 11:21
Show Gist options
  • Save tvsjazz/534c502c6325438a3ff8cb085195a5f8 to your computer and use it in GitHub Desktop.
Save tvsjazz/534c502c6325438a3ff8cb085195a5f8 to your computer and use it in GitHub Desktop.
persistence.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.1"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
<persistence-unit name="casadocodigo-dev" transaction-type="JTA">
<description>Dev persistence unit</description>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!-- java transaction api || JNDI -->
<jta-data-source>java:jboss/datasources/casadocodigoDS</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
</properties>
</persistence-unit>
</persistence>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment