Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNan Li2013-08-22 02:01:19 +0000
committerNan Li2013-08-22 02:01:19 +0000
commit99039d2270f0e5d5e9733afded03d00b36b474af (patch)
tree40cc1ed969a2bf5d6e1405e22c712e43893ef059
parent5ac0c653bf19851157f2a56858d97adbb362590b (diff)
downloadwebtools.dali-99039d2270f0e5d5e9733afded03d00b36b474af.tar.gz
webtools.dali-99039d2270f0e5d5e9733afded03d00b36b474af.tar.xz
webtools.dali-99039d2270f0e5d5e9733afded03d00b36b474af.zip
409645 - Make Persistent Wizard: Length of Date type of Column sets to
-1 (fix for 3.3.1)
-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