aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-01-27 13:51:04 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-01-27 13:51:04 +1300
commit268ac2ad8dab34676631c7af23f9af3a7b3bc89b (patch)
tree66ba26bd770479956bc0e2a1fad47c9e85538c30
parentde9487c9c3e1b088bb2774751f8b0d0e3a5c7fce (diff)
downloadetbsa-traccar-web-268ac2ad8dab34676631c7af23f9af3a7b3bc89b.tar.gz
etbsa-traccar-web-268ac2ad8dab34676631c7af23f9af3a7b3bc89b.tar.bz2
etbsa-traccar-web-268ac2ad8dab34676631c7af23f9af3a7b3bc89b.zip
Change test database to H2
-rw-r--r--src/META-INF/persistence.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/META-INF/persistence.xml b/src/META-INF/persistence.xml
index 28f3835..0dc8efb 100644
--- a/src/META-INF/persistence.xml
+++ b/src/META-INF/persistence.xml
@@ -11,10 +11,10 @@
</persistence-unit>
<persistence-unit name="debug">
<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.connection.driver_class" value="org.h2.Driver"/>
+ <property name="hibernate.connection.url" value="jdbc:h2:/home/user/Documents/traccar-web/database"/>
+ <property name="hibernate.connection.username" value="sa"/>
+ <property name="hibernate.connection.password" value=""/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
</properties>