1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Sat Aug 15 13:58:43 2015 +0200
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java Sat Aug 15 14:00:47 2015 +0200
1.3 @@ -207,7 +207,8 @@
1.4 new HeaderField("name", SQLType.VARCHAR),
1.5 new HeaderField("type", SQLType.VARCHAR),
1.6 new HeaderField("default", SQLType.VARCHAR),
1.7 - new HeaderField("description", SQLType.VARCHAR)
1.8 + new HeaderField("description", SQLType.VARCHAR),
1.9 + new HeaderField("declared_in", SQLType.VARCHAR)
1.10 );
1.11
1.12 Map<String, Object[]> data = new HashMap<>();
1.13 @@ -216,7 +217,7 @@
1.14 Collections.reverse(hierarchy);
1.15 hierarchy.stream().forEach((c) -> {
1.16 for (PropertyDeclaration p : getPropertyDeclarations(c)) {
1.17 - data.put(p.name(), propertyDeclarationToRow(p));
1.18 + data.put(p.name(), propertyDeclarationToRow(p, c));
1.19 }
1.20 });
1.21
1.22 @@ -229,12 +230,13 @@
1.23 }
1.24 }
1.25
1.26 - private static Object[] propertyDeclarationToRow(PropertyDeclaration p) {
1.27 + private static Object[] propertyDeclarationToRow(PropertyDeclaration p, Class formatterClass) {
1.28 return new Object[]{
1.29 p.name(),
1.30 CommonProperties.getSimpleTypeName(p.type()),
1.31 p.defaultValue(),
1.32 - p.description()
1.33 + p.description(),
1.34 + formatterClass.getName()
1.35 };
1.36 }
1.37