Commit d3808d5a authored by Marco Descher's avatar Marco Descher 🏔

toarray

parent 3118fe4b
......@@ -5,7 +5,7 @@ const Collectors = Java.type("java.util.stream.Collectors");
const sql = 'SELECT COUNT(*),MandantID FROM BEHANDLUNGEN GROUP BY MandantID';
var stream = coreModelService.executeNativeQuery(sql);
print(stream);
var result = stream.collect(Collectors.toList())
var result = stream.toArray();
for(r of result) {
print(r);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment