How to get a Single column from tha database ?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • Environment:
      Java API
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I need to get a single column values which are distinct. My table has three fields & none of them is primary.

      id, segment, active. I had written the following code, but it returns a result of size '0'.

      DBObject target = new BasicDBObject();
      target.put("segment", segmentId);
      target.put("active", "true");

      List<String> result = targetList.distinct("id",target)

      The value of result.size() is 0

            Assignee:
            Unassigned
            Reporter:
            Harshavardhan Konakanchi
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: