code: private static void isCompletePartitionKeyPresentInQuery(Queue filterQueue, MetamodelImpl metaModel,
              EntityMetadata metadata)
      {
          Set<String> partitionKeyFields = new HashSet<String>();
          populateEmbeddedIdFields(metaModel.embeddable(metadata.getIdAttribute().getBindableJavaType()).getAttributes(),
                  metaModel, partitionKeyFields);
  
          Set<String> queryAttributes = new HashSet<String>();
          for (Object object : filterQueue)
          {
              if (object instanceof FilterClause)
              {
                  FilterClause filter = (FilterClause) object;
                  String property = filter.getProperty();
                  String filterAttr[] = property.split("\\.");
                  for (String s : filterAttr)
                  {
                      queryAttributes.add(s);
                  }
              }
          }
          if (!queryAttributes.containsAll(partitionKeyFields))
          {
              throw new QueryHandlerException("Incomplete partition key fields in query");
          }
      }
docs: cheking whether all the fields of partition key are present in the jpa
  query
  
  @param filterQueue
  @param metaModel
  @param metadata