code: public List findByRelation(String colName, Object colValue, Class entityClazz)
      {
          EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);
          String tableName = m.getTableName();
  
          // Suffixing the UNDERSCORE instead of prefix as Oracle 11g complains
          // about invalid characters error while executing the request.
          StringBuilder queryBuilder = new StringBuilder("Select ");
  
          queryBuilder.append("* ");
          queryBuilder.append("From ");
          queryBuilder.append(getFromClause(m.getSchema(), tableName));
          queryBuilder.append(" ");
  
          queryBuilder.append(" Where ");
          queryBuilder.append(colName);
          queryBuilder.append(" = ");
          queryBuilder.append("'");
          queryBuilder.append(colValue);
          queryBuilder.append("'");
          s = getStatelessSession();
  
          List results = find(queryBuilder.toString(), m.getRelationNames(), m);
          return populateEnhanceEntities(m, m.getRelationNames(), results);
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#find(java.lang.String,
  java.lang.String, com.impetus.kundera.metadata.model.EntityMetadata)