code: @Override
      public List<Object> findByRelation(String colName, Object colValue, Class entityClazz)
      {
          EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);
  
          String columnFamilyName = m.getTableName();
  
          byte[] valueInBytes = HBaseUtils.getBytes(colValue);
          SingleColumnValueFilter f = new SingleColumnValueFilter(Bytes.toBytes(columnFamilyName),
                  Bytes.toBytes(colName), CompareOp.EQUAL, valueInBytes);
  
          List output = new ArrayList();
          try
          {
              List<AbstractManagedType> subManagedType = getSubManagedType(entityClazz, m);
  
              if (!subManagedType.isEmpty())
              {
                  for (AbstractManagedType subEntity : subManagedType)
                  {
                      EntityMetadata subEntityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata,
                              subEntity.getJavaType());
                      List results = ((HBaseDataHandler) handler).scanData(f, subEntityMetadata.getSchema(),
                              subEntityMetadata.getEntityClazz(), subEntityMetadata, columnFamilyName, colName);
                      if (!results.isEmpty())
                      {
                          output.addAll(results);
                      }
                  }
              }
              else
              {
                  return ((HBaseDataHandler) handler).scanData(f, m.getSchema(), entityClazz, m, columnFamilyName,
                          colName);
              }
          }
          catch (IOException ioe)
          {
              log.error("Error during find By Relation, Caused by: .", ioe);
              throw new KunderaException(ioe);
          }
          catch (InstantiationException ie)
          {
              log.error("Error during find By Relation, Caused by: .", ie);
              throw new KunderaException(ie);
          }
          catch (IllegalAccessException iae)
          {
              log.error("Error during find By Relation, Caused by: .", iae);
              throw new KunderaException(iae);
          }
  
          return output;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#findByRelation(java.lang.String,
  java.lang.Object, java.lang.Class)