summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-24 12:18:36 (EDT)
committerEike Stepper2007-08-24 12:18:36 (EDT)
commit8b41b79857310d838d32752b83cf2fa5e75eff4e (patch)
tree281327072625ed187b1b90178876b541f74800d0
parent400099248d07a4587360f3ecaf50b0f372210763 (diff)
downloadcdo-8b41b79857310d838d32752b83cf2fa5e75eff4e.zip
cdo-8b41b79857310d838d32752b83cf2fa5e75eff4e.tar.gz
cdo-8b41b79857310d838d32752b83cf2fa5e75eff4e.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java5
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java4
2 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java
index f5507a1..17a541c 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java
@@ -25,7 +25,6 @@ import org.eclipse.net4j.db.IDBTable;
import org.eclipse.net4j.internal.util.om.trace.ContextTracer;
import org.eclipse.net4j.util.ImplementationError;
-import java.sql.Date;
import java.sql.Statement;
import java.util.HashSet;
import java.util.Set;
@@ -82,9 +81,9 @@ public abstract class Mapping implements IMapping
builder.append(", ");
builder.append(revision.getVersion());
builder.append(", ");
- builder.append(new Date(revision.getCreated()));
+ builder.append(revision.getCreated());
builder.append(", ");
- builder.append(new Date(revision.getRevised()));
+ builder.append(revision.getRevised());
builder.append(", ");
builder.append(revision.getResourceID().getValue());
builder.append(", ");
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
index 5ce4732..351b0a5 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
@@ -135,8 +135,8 @@ public abstract class MappingStrategy implements IMappingStrategy
{
table.addField("cdo_class", DBType.INTEGER);
table.addField("cdo_version", DBType.INTEGER);
- table.addField("cdo_created", DBType.TIMESTAMP);
- table.addField("cdo_revised", DBType.TIMESTAMP);
+ table.addField("cdo_created", DBType.BIGINT);
+ table.addField("cdo_revised", DBType.BIGINT);
table.addField("cdo_resource", DBType.BIGINT);
table.addField("cdo_container", DBType.BIGINT);
table.addField("cdo_feature", DBType.INTEGER);