fix: persistence
This commit is contained in:
parent
be22ed4fe3
commit
9e97667355
19
src/main/resources/META-INF/persistence.xml
Normal file
19
src/main/resources/META-INF/persistence.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?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="pixels" transaction-type="JTA">
|
||||
|
||||
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
||||
<jta-data-source>java:/jdbc/datasources/pixelDS</jta-data-source>
|
||||
|
||||
<properties>
|
||||
|
||||
<property name="hibernate.show_sql" value="true" />
|
||||
<property name="hibernate.format_sql" value="false" />
|
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.MariaDB103Dialect" />
|
||||
<!-- Ligne suivante à décommenter pour remettre à zéro la db au déploiement -->
|
||||
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
|
||||
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
</persistence>
|
Loading…
Reference in a new issue