(no commit message)
authorm.doering <m.doering@localhost>
Thu, 4 Oct 2007 11:57:17 +0000 (11:57 +0000)
committerm.doering <m.doering@localhost>
Thu, 4 Oct 2007 11:57:17 +0000 (11:57 +0000)
.gitattributes
cdmlibrary/archive/editCdm.hibernate.cfg.xml [new file with mode: 0644]

index 0c58953f8e57e937e129fbeeaf26da9d7094d1e1..a786d29d99bbcfaed71d7c08a0cef3c5f169270d 100644 (file)
@@ -36,6 +36,7 @@ cdmLibraryPlugin/xercesImpl.jar -text
 cdmLibraryPlugin/xml-apis.jar -text
 cdmlibrary/.classpath -text
 cdmlibrary/.project -text
+cdmlibrary/archive/editCdm.hibernate.cfg.xml -text
 cdmlibrary/build.xml -text
 cdmlibrary/dist/jar/cdmLibrary.jar -text
 cdmlibrary/dist/jar/cdmLibraryFat.jar -text
diff --git a/cdmlibrary/archive/editCdm.hibernate.cfg.xml b/cdmlibrary/archive/editCdm.hibernate.cfg.xml
new file mode 100644 (file)
index 0000000..d57abaf
--- /dev/null
@@ -0,0 +1,66 @@
+<?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