diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-11-17 18:04:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-11-17 18:04:47 +1300 |
commit | 3d63b73061d7ae7b56f6c1f5bfc265ef41981bbb (patch) | |
tree | 70ce974ad4c02e1b5f666ed65f283692522349f0 /src/main/resources/META-INF/persistence.xml | |
parent | efc59ab19fc92242d3532f990d129908f79be480 (diff) | |
download | trackermap-web-3d63b73061d7ae7b56f6c1f5bfc265ef41981bbb.tar.gz trackermap-web-3d63b73061d7ae7b56f6c1f5bfc265ef41981bbb.tar.bz2 trackermap-web-3d63b73061d7ae7b56f6c1f5bfc265ef41981bbb.zip |
Add database model
Diffstat (limited to 'src/main/resources/META-INF/persistence.xml')
-rw-r--r-- | src/main/resources/META-INF/persistence.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml new file mode 100644 index 00000000..a89d96d1 --- /dev/null +++ b/src/main/resources/META-INF/persistence.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"> + <provider>org.hibernate.ejb.HibernatePersistence</provider> + <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.hbm2ddl.auto" value="create-drop"/> + </properties> + </persistence-unit> +</persistence> |