Skip to content

Commit

Permalink
#186 - Check for inner elements of CompositeType
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Sep 7, 2022
1 parent fa4b34f commit 33d0071
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/geppetto/core/datasources/QueryChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public static boolean check(Query query, Variable variable)
{
isSuperType = true;
break;
} else {
for ( Type anonymousType : type.getSuperType() ) {
if ( anonymousType.getId().equals(typeToMatch.getId()) ) {
isSuperType = true;
break;
}
}
}
}
if(!isSuperType)
Expand Down

0 comments on commit 33d0071

Please sign in to comment.