Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.hibernate.server/config/cdo-server-new.xml')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.hibernate.server/config/cdo-server-new.xml73
1 files changed, 0 insertions, 73 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.hibernate.server/config/cdo-server-new.xml b/plugins/org.eclipse.emf.cdo.examples.hibernate.server/config/cdo-server-new.xml
deleted file mode 100644
index c8a58032a8..0000000000
--- a/plugins/org.eclipse.emf.cdo.examples.hibernate.server/config/cdo-server-new.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<cdoServer>
-
-<!--
- This is the new format for the cdo-server.xml which places the hibernate and teneo
- properties inside the store and mappingprovider tags.
--->
-
- <!--
- <acceptor type="http"/>
- -->
-
- <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
- <!--
- <negotiator type="challenge" description="/temp/users.db"/>
- -->
- </acceptor>
-
- <repository name="repo1">
- <property name="overrideUUID" value=""/>
- <property name="supportingAudits" value="false"/>
-
- <store type="hibernate">
-
- <mappingProvider type="teneo">
- <!--
- Teneo options:
- see: http://www.elver.org/hibernate/options.html
- or the org.eclipse.emf.teneo.PersistenceOptions class
- -->
-
- <!-- The following value must be set normally like this, use this in your app also -->
- <property name="teneo.mapping.cascade_policy_on_non_containment" value="PERSIST,MERGE"/>
-
- <!-- some demo settings -->
- <!--
- using an external xml file for annotations, note this xml file
- is located in the org.eclipse.emf.cdo.examples.hibernate.annotations
- which is available on the cdo server by adding it to the CDOHibernateServer.launch configuration
- -->
- <property name="teneo.mapping.persistence_xml" value="/META-INF/company_model_teneo_annotations.xml"/>
- <!-- create tables for each subclass with joining to the parent table -->
- <property name="teneo.mapping.inheritance" value="JOINED"/>
- <!-- create an index for each fk -->
- <property name="teneo.mapping.add_index_for_fk" value="true"/>
-
- </mappingProvider>
-
- <!-- Hibernate properties , see: http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#configuration-optional -->
- <property name="hibernate.hbm2ddl.auto" value="update"/>
- <property name="hibernate.show_sql" value="false"/>
- <property name="hibernate.connection.pool_size" value="10"/>
- <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
-
- <!-- Setting for hsqldb -->
- <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
- <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
- <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:cdohibernate"/>
- <property name="hibernate.connection.username" value="sa"/>
- <property name="hibernate.connection.password" value=""/>
- <property name="hibernate.connection.autocommit" value="true"/>
-
- <!-- Setting for mysql -->
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
- <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/cdohibernate"/>
- <property name="hibernate.connection.username" value="root"/>
- <property name="hibernate.connection.password" value="root"/>
-
- </store>
- </repository>
-
-</cdoServer> \ No newline at end of file

Back to the top