aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/META-INF/persistence_debug.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/META-INF/persistence_debug.xml')
-rw-r--r--src/main/resources/META-INF/persistence_debug.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/persistence_debug.xml b/src/main/resources/META-INF/persistence_debug.xml
new file mode 100644
index 00000000..a070dfac
--- /dev/null
+++ b/src/main/resources/META-INF/persistence_debug.xml
@@ -0,0 +1,17 @@
+<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.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.show_sql" value="true"/>
+ <!--<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>-->
+ <property name="hibernate.hbm2ddl.auto" value="validate"/>
+ </properties>
+ </persistence-unit>
+</persistence>