Skip to content

Commit c4b3001

Browse files
committed
Creating a testing hibernate configuration for Travis
1 parent 16be5f3 commit c4b3001

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ branches:
1010
- master
1111
before_install:
1212
- mysql --user root < /home/travis/build/Warkdev/JaNGOSAuth/database/structure.sql
13-
- mysql --user root jangosauth < /home/travis/build/Warkdev/JaNGOSAuth/database/data.sql
14-
- mysql --user root -e 'show databases;'
13+
- mysql --user root jangosauth < /home/travis/build/Warkdev/JaNGOSAuth/database/data.sql

src/main/resources/hibernate.cfg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
77
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jangosauth</property>
88
<property name="hibernate.connection.username">root</property>
9-
<property name="hibernate.connection.password"></property>
9+
<property name="hibernate.connection.password">root</property>
1010
<property name="hibernate.show_sql">true</property>
1111
<property name="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory</property>
1212
<mapping resource="eu/jangos/auth/model/Account.hbm.xml"/>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
3+
<hibernate-configuration>
4+
<session-factory>
5+
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
6+
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
7+
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jangosauth</property>
8+
<property name="hibernate.connection.username">root</property>
9+
<property name="hibernate.connection.password"></property>
10+
<property name="hibernate.show_sql">false</property>
11+
<property name="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory</property>
12+
<mapping resource="eu/jangos/auth/model/Account.hbm.xml"/>
13+
<mapping resource="eu/jangos/auth/model/Realmtype.hbm.xml"/>
14+
<mapping resource="eu/jangos/auth/model/Realmtimezone.hbm.xml"/>
15+
<mapping resource="eu/jangos/auth/model/Parameter1.hbm.xml"/>
16+
<mapping resource="eu/jangos/auth/model/Commands.hbm.xml"/>
17+
<mapping resource="eu/jangos/auth/model/Realm.hbm.xml"/>
18+
<mapping resource="eu/jangos/auth/model/Bannedaccount.hbm.xml"/>
19+
<mapping resource="eu/jangos/auth/model/Bannedip.hbm.xml"/>
20+
<mapping resource="eu/jangos/auth/model/Locale.hbm.xml"/>
21+
<mapping resource="eu/jangos/auth/model/Roles.hbm.xml"/>
22+
<mapping resource="eu/jangos/auth/model/RealmAccount.hbm.xml"/>
23+
</session-factory>
24+
</hibernate-configuration>

0 commit comments

Comments
 (0)