Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.annotate/src/org/eclipse/jpt/jpa/annotate/mapping/ColumnAttributes.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.annotate/src/org/eclipse/jpt/jpa/annotate/mapping/ColumnAttributes.java b/jpa/plugins/org.eclipse.jpt.jpa.annotate/src/org/eclipse/jpt/jpa/annotate/mapping/ColumnAttributes.java
index 24944af29d..01e63ffa66 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.annotate/src/org/eclipse/jpt/jpa/annotate/mapping/ColumnAttributes.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.annotate/src/org/eclipse/jpt/jpa/annotate/mapping/ColumnAttributes.java
@@ -13,6 +13,7 @@ package org.eclipse.jpt.jpa.annotate.mapping;
import java.text.NumberFormat;
import java.text.ParseException;
+import org.eclipse.jpt.common.utility.internal.StringTools;
import org.eclipse.jpt.jpa.annotate.internal.plugin.JptJpaAnnotatePlugin;
public class ColumnAttributes extends AnnotationAttributes
@@ -207,7 +208,13 @@ public class ColumnAttributes extends AnnotationAttributes
public boolean isSetLength()
{
- return getAnnotationAttribute(AnnotationAttributeNames.LENGTH) != null;
+ return getAnnotationAttribute(AnnotationAttributeNames.LENGTH) == null ?
+ false :
+ !StringTools.equalsIgnoreCase
+ (
+ getAnnotationAttribute(AnnotationAttributeNames.LENGTH).attrValue,
+ "-1" //$NON-NLS-1$
+ );
}
public int getLength()

Back to the top