title: MongoDB Query in Java, search/find in nested object
body: <p>I'm having a little trouble with a query in Java on a MongoDB.</p>
  
  <p>I have the follow structure in the database:</p>
  
  <pre><code>            {
                "_id" : ObjectId("5059c214707747cbc5819f6f"),
                "id" : "7",
                "title" : "test4",
                "keywords" : "keyword 1, keyword 2",
  
                "partner" : {
                  "id" : "1",
                  "name" : "partner",
                  "keywords" : "partner keyword 1, partner keyword 2"
                },
                "status" : {
                  "id" : "0",
                  "name" : "Expired"
                },
  
                "modified" : "2012-09-27"
              }
  </code></pre>
  
  <p>I want the query the database for the field 'Status.name', example 
  SELECT * FROM table WHERE status.name = 'Expired'</p>
  
  <p>How would I do such a query in Java for MongoDB?</p>
  
  <p>Thanks for any help or suggestions!</p>