In my Java Play framework application, I want to store the ArrayList values in mongoDB.

```
{
    "_id" : ObjectId("5832f29bd4c6721e4e8ba4a7"),
    "_class" : "com.netas.innovation.entity.Idea",
    "title" : "fsaf",
    "desc" : "adgg",
    "keyWords" : "dgds",
    "createdDate" : ISODate("2016-11-21T13:11:55.823Z"),
    "checkbox1" : false,
    "checkbox2" : false,
    "checkbox3" : false,
    "scopeOfIdea" : "Herkes",
    "template" : false,
    "creatorUser" : {
        "$ref" : "user",
        "$id" : ObjectId("5832f27dd4c6721e4e8ba4a5")
    },
    "owners" : [ 
        {
            "$ref" : "user",
            "$id" : ObjectId("5832f27dd4c6721e4e8ba4a5")
        }
    ],
    "answer" : {
        "$ref" : "answer",
        "$id" : ObjectId("5832f29bd4c6721e4e8ba4a6")
    },
    "fileList" : []
}

```

i want to search in owners.

My query doesnt work

```
if(owners != null && !owners.isEmpty()) {

           for(int i=0; i<owners.size(); i++) {
              criteriaList.add(new **Criteria().elemMatch(Criteria.where("owners.$id").is(owners.get(i).getId())));**
            }
        }

```

How can i fix? 
i can search by owners.
owners can be two people or three

Thanks for answers