Added Exercise 3 Example Project

Added Exercise 3 Example Project
This commit is contained in:
Togepy95
2017-04-27 12:58:49 +02:00
parent 0648382c86
commit 3bc63e5442
32 changed files with 2559 additions and 0 deletions

25
03/src/hibernate.cfg.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="connection.url">jdbc:db2://vsisls4.informatik.uni-hamburg.de:50001/VSISP</property>
<property name="connection.username">vsisp**</property>
<property name="connection.password">********</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="current_session_context_class">thread</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="show_sql">true</property>
<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>
<mapping resource="de/dis2013/data/mapping/Person.hbm.xml" />
<mapping resource="de/dis2013/data/mapping/Makler.hbm.xml" />
<mapping resource="de/dis2013/data/mapping/Immobilie.hbm.xml" />
</session-factory>
</hibernate-configuration>