code: private void addDiscriminatorClause(List<String> clauses, EntityType entityType) {
          if (((AbstractManagedType) entityType).isInherited()) {
              String discrColumn = ((AbstractManagedType) entityType).getDiscriminatorColumn();
              String discrValue = ((AbstractManagedType) entityType).getDiscriminatorValue();
  
              if (discrColumn != null && discrValue != null) {
                  if (clauses != null && !clauses.isEmpty()) {
                      filtersQueue.add("AND");
                  }
  
                  FilterClause filterClause = new FilterClause(discrColumn, "=", discrValue, discrColumn);
                  filtersQueue.add(filterClause);
              }
          }
      }
docs: Adds the discriminator clause.
  
  @param clauses
  the clauses
  @param entityType
  the entity type