Skip to content

Commit

Permalink
0001616: Configuration of transforms has been said to "Give me more h…
Browse files Browse the repository at this point in the history
…eadaches than a rap concert." Simplify configuration.
  • Loading branch information
adambailey- committed Aug 6, 2014
1 parent f6afe32 commit 637a022
Showing 1 changed file with 15 additions and 2 deletions.
Expand Up @@ -185,7 +185,7 @@ public boolean equals(Object obj) {
transformType.equals(tc.transformType) &&
StringUtils.equals(transformExpression, tc.transformExpression) &&
includeOn == tc.includeOn &&
StringUtils.equals(lastUpdateBy, tc.lastUpdateBy) ) {
StringUtils.equals(lastUpdateBy, tc.lastUpdateBy) && transformOrder == tc.transformOrder) {
return true;
} else {
return false;
Expand All @@ -210,7 +210,20 @@ public TransformColumn clone() {
}

public int compareTo(TransformColumn o) {
return new Integer(transformOrder).compareTo(new Integer(o.transformOrder));
//return new Integer(transformOrder).compareTo(new Integer(o.transformOrder));
TransformColumn tc = o;
if (tc != null &&
StringUtils.equals(sourceColumnName, tc.sourceColumnName) &&
StringUtils.equals(targetColumnName, tc.targetColumnName) &&
pk == tc.pk &&
transformType.equals(tc.transformType) &&
StringUtils.equals(transformExpression, tc.transformExpression) &&
includeOn == tc.includeOn &&
StringUtils.equals(lastUpdateBy, tc.lastUpdateBy) && transformOrder == tc.transformOrder) {
return 0;
} else {
return -1;
}
}

}

0 comments on commit 637a022

Please sign in to comment.