[Fix] filter to only StringParameters in joining of GenericReport

This commit is contained in:
Robert von Burg 2017-10-18 16:33:56 +02:00
parent c0bf2ae428
commit 3bcd2075d3
1 changed files with 6 additions and 1 deletions

View File

@ -467,7 +467,12 @@ public class GenericReport extends ReportPolicy {
"Invalid join definition value: " + joinP.getValue() + " on: " + joinP.getLocator() + " as "
+ dependency.getLocator() + " has no ParameterBag " + BAG_RELATIONS);
List<Parameter<?>> relationParams = relationsBag.getParametersByInterpretationAndUom(interpretation, joinType);
List<Parameter<?>> relationParams = relationsBag //
.getParametersByInterpretationAndUom(interpretation, joinType) //
.stream() //
.filter(s -> s.getType().equals(StrolchValueType.STRING.getType())) //
.collect(Collectors.toList()); //
if (relationParams.isEmpty()) {
throw new IllegalStateException(
"Found no relation parameters with UOM " + joinType + " on dependency " + dependency.getLocator());