Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java
index 315f5370d3..2074131edd 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/ClassMapping.java
@@ -243,7 +243,8 @@ public abstract class ClassMapping implements IClassMapping
protected int getDBLength(CDOFeature cdoFeature)
{
// Derby: The maximum length for a VARCHAR string is 32,672 characters.
- return cdoFeature.getType() == CDOType.STRING ? 32672 : IDBField.DEFAULT;
+ CDOType type = cdoFeature.getType();
+ return type == CDOType.STRING || type == CDOType.CUSTOM ? 32672 : IDBField.DEFAULT;
}
protected IDBAdapter getDBAdapter()
@@ -417,7 +418,7 @@ public abstract class ClassMapping implements IClassMapping
{
return new AttributeMapping.AMShort(this, feature);
}
- else if (type == CDOType.STRING)
+ else if (type == CDOType.STRING || type == CDOType.CUSTOM)
{
return new AttributeMapping.AMString(this, feature);
}

Back to the top