code: private Map<Boolean, String> getConditionOnIdColumn(String idColumn)
      {
  
          Map<Boolean, String> filterIdResult = new HashMap<Boolean, String>();
  
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  entityMetadata.getPersistenceUnit());
  
          EmbeddableType keyObj = null;
          if (metaModel.isEmbeddable(entityMetadata.getIdAttribute().getBindableJavaType()))
          {
              keyObj = metaModel.embeddable(entityMetadata.getIdAttribute().getBindableJavaType());
          }
  
          for (Object o : query.getKunderaQuery().getFilterClauseQueue())
          {
              if (o instanceof FilterClause)
              {
                  FilterClause clause = ((FilterClause) o);
                  String fieldName = clause.getProperty();
                  String condition = clause.getCondition();
  
                  if (keyObj != null && fieldName.equals(idColumn)
                          || (keyObj != null && StringUtils.contains(fieldName, '.')) || (idColumn.equals(fieldName)))
                  {
                      filterIdResult.put(true, condition);
                      break;
                  }
              }
          }
          return filterIdResult;
      }
docs: Gets the condition on id column.
  
  @param idColumn
  the id column
  @return the condition on id column