aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/META-INF/persistence_debug.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-12-29 14:14:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-12-29 14:14:08 +1300
commit65913d45863159b9652865bc4f23eb62120d9b62 (patch)
treece9f48f3ee8716ee93ad359f3acc4c71be0741fd /src/main/resources/META-INF/persistence_debug.xml
parent9c2ed26b25a0454c2e90943386050d6c05e7ae5d (diff)
downloadtrackermap-web-65913d45863159b9652865bc4f23eb62120d9b62.tar.gz
trackermap-web-65913d45863159b9652865bc4f23eb62120d9b62.tar.bz2
trackermap-web-65913d45863159b9652865bc4f23eb62120d9b62.zip
Add debug and release database config
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>