use of com.haulmont.cuba.core.sys.jpql.pointer.HasEntityPointer in project cuba by cuba-platform.
the class EntitiesFinder method resolveEntityNames.
protected void resolveEntityNames(Set<String> entityNames, PathNode node, DomainModel model, QueryVariableContext queryVariableContext) {
List<Pointer> pointers = node.resolveTransitionalPointers(model, queryVariableContext);
pointers.stream().filter(pointer -> pointer instanceof HasEntityPointer).forEach(pointer -> {
JpqlEntityModel entityModel = ((HasEntityPointer) pointer).getEntity();
if (entityModel != null) {
entityNames.add(entityModel.getName());
}
});
}
Aggregations