Closed chrycheng closed 7 years ago
Actually, removing the mapping doesn't seem to affect the outcome of the test as it still passes.
diff --git a/schemacrawler-diff/src/main/java/schemacrawler/tools/integration/objectdiffer/SchemaCrawlerDifferBuilder.java b/schemacrawler-diff/src/main/java/schemacrawler/tools/integration/objectdiffer/SchemaCrawlerDifferBuilder.java
index bef19ab..58eeed2 100644
--- a/schemacrawler-diff/src/main/java/schemacrawler/tools/integration/objectdiffer/SchemaCrawlerDifferBuilder.java
+++ b/schemacrawler-diff/src/main/java/schemacrawler/tools/integration/objectdiffer/SchemaCrawlerDifferBuilder.java
@@ -82,8 +82,6 @@ public class SchemaCrawlerDifferBuilder
.propertyName("exportedForeignKeys");
objectDifferBuilder.inclusion().exclude()
.propertyName("importedForeignKeys");
- objectDifferBuilder.comparison().ofType(NamedObject.class)
- .toUse(new NamedObjectComparisonStrategy());
objectDifferBuilder.inclusion().exclude().propertyName("deferrable");
objectDifferBuilder.inclusion().exclude().propertyName("initiallyDeferred");
}
It's mapped to handle
NamedObject
instances but as far as I can tell it doesn't get retrieved becauseNamedObject
is an interface and the actual type of the instance (e.g.,MutableTable
, etc.) is used to look upComparisonStrategy
s inComparisonService
. To further confirm, I addedSystem.out.println
calls toNamedObjectComparisonStrategy::compare
(see following diff) which did not appear in the console output.