summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2008-03-13 03:10:01 (EDT)
committerMartin Taal2008-03-13 03:10:01 (EDT)
commit2ff56a6072a0c6083e1f7c3cfe06a03ea82e988c (patch)
tree7d5825414da147255f7d3490fef0c11546144b63
parentc927a309b7877b352ecaeed0190a6f630b000d76 (diff)
downloadcdo-2ff56a6072a0c6083e1f7c3cfe06a03ea82e988c.zip
cdo-2ff56a6072a0c6083e1f7c3cfe06a03ea82e988c.tar.gz
cdo-2ff56a6072a0c6083e1f7c3cfe06a03ea82e988c.tar.bz2
Updated to use filemappingprovider
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java
index 483cc49..6280e3f 100644
--- a/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java
+++ b/plugins/org.eclipse.emf.cdo.tests.hibernate/src/org/eclipse/emf/cdo/tests/hibernate/HibernateServer.java
@@ -15,6 +15,8 @@ import org.eclipse.emf.cdo.server.CDOServerUtil;
import org.eclipse.emf.cdo.server.IRepository;
import org.eclipse.emf.cdo.server.IStore;
import org.eclipse.emf.cdo.server.IRepository.Props;
+import org.eclipse.emf.cdo.server.hibernate.IHibernateMappingProvider;
+import org.eclipse.emf.cdo.server.internal.hibernate.HibernateFileMappingProvider;
import org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore;
import org.eclipse.net4j.Net4jUtil;
@@ -77,7 +79,7 @@ public class HibernateServer
private static IManagedContainer initContainer() throws FileNotFoundException
{
// Turn on tracing
- OMPlatform.INSTANCE.setDebugging(true);
+ OMPlatform.INSTANCE.setDebugging(false);
OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
if (TRACE_TO_FILE)
{
@@ -133,6 +135,7 @@ public class HibernateServer
{
// IHibernateMappingProvider mappingProvider = new TeneoHibernateMappingProvider();
// return new HibernateStore(props, mappingProvider);
- return new HibernateStore(null);
+ IHibernateMappingProvider mappingProvider = new HibernateFileMappingProvider("/mappings/product.hbm.xml");
+ return new HibernateStore(mappingProvider);
}
}