aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/META-INF/persistence_debug.xml (renamed from src/main/resources/META-INF/persistence.xml)6
-rw-r--r--src/main/resources/META-INF/persistence_release.xml12
2 files changed, 15 insertions, 3 deletions
diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence_debug.xml
index e4573c9a..a070dfac 100644
--- a/src/main/resources/META-INF/persistence.xml
+++ b/src/main/resources/META-INF/persistence_debug.xml
@@ -3,14 +3,14 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="traccar">
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
+ <!--<jta-data-source>java:/DefaultDS</jta-data-source>-->
<properties>
- <property name="hibernate.show_sql" value="true"/>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.connection.url" value="jdbc:mysql://localhost/test"/>
<property name="hibernate.connection.username" value="root"/>
<property name="hibernate.connection.password" value="root"/>
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
+ <property name="hibernate.show_sql" value="true"/>
+ <!--<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>-->
<property name="hibernate.hbm2ddl.auto" value="validate"/>
</properties>
</persistence-unit>
diff --git a/src/main/resources/META-INF/persistence_release.xml b/src/main/resources/META-INF/persistence_release.xml
new file mode 100644
index 00000000..dc5ac2db
--- /dev/null
+++ b/src/main/resources/META-INF/persistence_release.xml
@@ -0,0 +1,12 @@
+<persistence 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"
+ version="2.0">
+ <persistence-unit name="traccar">
+ <jta-data-source>java:/DefaultDS</jta-data-source>
+ <properties>
+ <property name="hibernate.show_sql" value="true"/>
+ <property name="hibernate.hbm2ddl.auto" value="validate"/>
+ </properties>
+ </persistence-unit>
+</persistence>