code: @Override
      public List<Object> findByRelation(String colName, Object colValue, Class entityClazz)
      {
          EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);
          Object[] ids = findIdsByColumn(m.getSchema(), m.getTableName(),
                  ((AbstractAttribute) m.getIdAttribute()).getJPAColumnName(), colName, colValue, m.getEntityClazz());
          List<Object> resultSet = new ArrayList<Object>();
          if (ids != null)
          {
              for (Object id : new HashSet(Arrays.asList(ids)))
              {
                  Object object = find(entityClazz, id);
                  if (object != null)
                  {
                      resultSet.add(object);
                  }
              }
          }
          return resultSet;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#findByRelation(java.lang.String,
  java.lang.Object, java.lang.Class)