Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNan Li2013-09-11 15:22:41 -0400
committerNan Li2013-09-11 15:22:41 -0400
commitf48fe47ae1b43f94552ecbdea1e515d4276eaf1d (patch)
treeb3d927f111800240d5e9c93dc6a09288e88259b7 /jpa/plugins/org.eclipse.jpt.jpa.annotate
parentcdd266c7731b7a1737442aba8a4ebd44d4cad3e7 (diff)
downloadwebtools.dali-f48fe47ae1b43f94552ecbdea1e515d4276eaf1d.tar.gz
webtools.dali-f48fe47ae1b43f94552ecbdea1e515d4276eaf1d.tar.xz
webtools.dali-f48fe47ae1b43f94552ecbdea1e515d4276eaf1d.zip
415647 - Make Persistent Wizard: java.text.ParseException: Unparseable
number: ""
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.annotate')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.annotate/src/org/eclipse/jpt/jpa/annotate/mapping/ColumnAttributes.java5
1 files changed, 3 insertions, 2 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..12943fe1ab 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
@@ -12,7 +12,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 +207,8 @@ public class ColumnAttributes extends AnnotationAttributes
public boolean isSetLength()
{
- return getAnnotationAttribute(AnnotationAttributeNames.LENGTH) != null;
+ AnnotationAttribute attr = getAnnotationAttribute(AnnotationAttributeNames.LENGTH);
+ return attr != null && !StringTools.isBlank(attr.attrValue);
}
public int getLength()

Back to the top