Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java
index 6076fa35af..3c46701821 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/jpa1/context/orm/GenericOrmOrderable.java
@@ -116,8 +116,8 @@ public class GenericOrmOrderable
if (orderBy != null) {
this.setSpecifiedOrderBy_(orderBy);
this.setNoOrdering_(false);
- this.setPkOrdering_(orderBy.isEmpty());
- this.setCustomOrdering_( ! orderBy.isEmpty());
+ this.setPkOrdering_(orderBy.length() == 0);
+ this.setCustomOrdering_(orderBy.length() != 0);
this.setOrderColumnOrdering_(false);
this.removeXmlOrderColumn();
@@ -219,7 +219,7 @@ public class GenericOrmOrderable
return false;
}
String xmlOrderBy = this.getXmlOrderBy();
- return (xmlOrderBy != null) && xmlOrderBy.isEmpty();
+ return (xmlOrderBy != null) && (xmlOrderBy.length() == 0);
}
@@ -263,7 +263,7 @@ public class GenericOrmOrderable
return false;
}
String xmlOrderBy = this.getXmlOrderBy();
- return (xmlOrderBy != null) && ! xmlOrderBy.isEmpty();
+ return (xmlOrderBy != null) && (xmlOrderBy.length() != 0);
}

Back to the top