code: @Override
      public <E> List<E> getColumnsById(String schemaName, String joinTableName, String joinColumnName,
              String inverseJoinColumnName, Object parentId, Class columnJavaType)
      {
          StringBuffer sqlQuery = new StringBuffer();
          sqlQuery.append("SELECT ").append(inverseJoinColumnName).append(" FROM ")
                  .append(getFromClause(schemaName, joinTableName)).append(" WHERE ").append(joinColumnName).append("='")
                  .append(parentId).append("'");
  
          Session s = getSession();
  
          SQLQuery query = s.createSQLQuery(sqlQuery.toString());
  
          List<E> foreignKeys = new ArrayList<E>();
  
          foreignKeys = query.list();
  
          return foreignKeys;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.Client#getColumnsById(java.lang.String,
  java.lang.String, java.lang.String, java.lang.String, java.lang.Object,
  java.lang.Class)