java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java
branchv_0
changeset 215 42880d38ad3e
parent 214 1fb3c7953d8a
child 216 0eb9aec16bf4
--- a/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java	Sat Aug 15 13:58:43 2015 +0200
+++ b/java/sql-dk/src/info/globalcode/sql/dk/InfoLister.java	Sat Aug 15 14:00:47 2015 +0200
@@ -207,7 +207,8 @@
 					new HeaderField("name", SQLType.VARCHAR),
 					new HeaderField("type", SQLType.VARCHAR),
 					new HeaderField("default", SQLType.VARCHAR),
-					new HeaderField("description", SQLType.VARCHAR)
+					new HeaderField("description", SQLType.VARCHAR),
+					new HeaderField("declared_in", SQLType.VARCHAR)
 			);
 
 			Map<String, Object[]> data = new HashMap<>();
@@ -216,7 +217,7 @@
 			Collections.reverse(hierarchy);
 			hierarchy.stream().forEach((c) -> {
 				for (PropertyDeclaration p : getPropertyDeclarations(c)) {
-					data.put(p.name(), propertyDeclarationToRow(p));
+					data.put(p.name(), propertyDeclarationToRow(p, c));
 				}
 			});
 
@@ -229,12 +230,13 @@
 		}
 	}
 
-	private static Object[] propertyDeclarationToRow(PropertyDeclaration p) {
+	private static Object[] propertyDeclarationToRow(PropertyDeclaration p, Class formatterClass) {
 		return new Object[]{
 			p.name(),
 			CommonProperties.getSimpleTypeName(p.type()),
 			p.defaultValue(),
-			p.description()
+			p.description(),
+			formatterClass.getName()
 		};
 	}