code: @Override
      public <E> List<E> findAll(Class<E> entityClass, String[] columnsToSelect, Object... rowIds)
      {
          EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass);
          if (rowIds == null)
          {
              return null;
          }
          List results = new ArrayList<E>();
  
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  entityMetadata.getPersistenceUnit());
  
          EntityType entityType = metaModel.entity(entityClass);
  
          List<AbstractManagedType> subManagedType = ((AbstractManagedType) entityType).getSubManagedType();
          try
          {
              if (!subManagedType.isEmpty())
              {
                  for (AbstractManagedType subEntity : subManagedType)
                  {
                      EntityMetadata subEntityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata,
                              subEntity.getJavaType());
                      results = handler.readAll(subEntityMetadata.getSchema(), subEntityMetadata.getEntityClazz(),
                              subEntityMetadata, Arrays.asList(rowIds), subEntityMetadata.getRelationNames());
                      // Result will not be empty for match sub entity.
                      if (!results.isEmpty())
                      {
                          break;
                      }
                  }
              }
              else
              {
  
                  results = handler.readAll(entityMetadata.getSchema(), entityMetadata.getEntityClazz(), entityMetadata,
                          Arrays.asList(rowIds), entityMetadata.getRelationNames());
              }
          }
          catch (IOException ioex)
          {
              log.error("Error during find All , Caused by: .", ioex);
              throw new KunderaException(ioex);
          }
  
          return results;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#findAll(java.lang.Class,
  java.lang.Object[])