--- /dev/null
+<?xml version='1.0' encoding='utf-8'?>\r
+<!DOCTYPE hibernate-configuration PUBLIC\r
+ "-//Hibernate/Hibernate Configuration DTD 3.0//EN"\r
+ "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+\r
+<!--NOT IN USE, see editCdm.spring.cfg.xml$sessionFactory-->
+\r
+<hibernate-configuration>\r
+ <session-factory>
+ <!-- Database connection settings -->\r
+ <!-- \r
+ <property name="connection.driver_class">com.mysql.jdbc.Driver</property>\r
+ <property name="connection.url">jdbc:mysql://192.168.2.10/cdm_test</property>\r
+ <property name="connection.username">edit</property>\r
+ <property name="connection.password">wp5</property>\r
+ -->\r
+\r
+ <!-- JDBC connection pool (use the built-in) -->\r
+ <property name="connection.pool_size">1</property>\r
+\r
+ <!-- SQL dialect -->\r
+ <property name="dialect">org.hibernate.dialect.MySQLDialect</property>\r
+\r
+ <!-- Enable Hibernate's automatic session context management -->\r
+ <property name="current_session_context_class">thread</property>\r
+\r
+ <!-- Disable the second-level cache -->\r
+ <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>\r
+\r
+ <!-- Echo all executed SQL to stdout -->\r
+ <property name="show_sql">false</property>\r
+ <!-- ... and make it nice -->\r
+ <property name="format_sql">false</property>\r
+ \r
+\r
+ <!-- Drop and re-create the database schema on startup -->\r
+ <property name="hbm2ddl.auto">update</property>\r
+ \r
+ \r
+ <!-- import generator information from package-info.java -->\r
+ \r
+ <mapping package="eu.etaxonomy.cdm.model.common"/>\r
+ \r
+ <mapping class="eu.etaxonomy.cdm.model.common.VersionableEntity"/>\r
+ <mapping class="eu.etaxonomy.cdm.model.common.IdentifiableEntity"/>\r
+ \r
+ <mapping class="eu.etaxonomy.cdm.model.name.TaxonName"/>\r
+ <mapping class="eu.etaxonomy.cdm.model.name.NameRelationship"/>\r
+ \r
+ \r
+ <mapping class="eu.etaxonomy.cdm.model.agent.Team"/>\r
+ <!-- mapping class="eu.etaxonomy.cdm.model.publication.NomenclaturalReference"/>\r
+ -->\r
+ \r
+ <!-- register new save-or-update event -->
+ <event type="save-or-update">
+ <listener class="eu.etaxonomy.cdm.event.CdmChangeListener"/>
+ <listener class="org.hibernate.event.def.DefaultSaveOrUpdateEventListener"/>
+ </event> \r
+ <event type="load">
+ <listener class="eu.etaxonomy.cdm.event.MyLoadListener"/>
+ <listener class="org.hibernate.event.def.DefaultLoadEventListener"/>
+ </event>
+ \r
+ </session-factory>
+</hibernate-configuration>
\ No newline at end of file