title: Mongodb updating and setting a field in embedded document
body: <p>I have a collection with embedded documents.</p>
  
  <pre><code> System
   {
       System_Info: "automated",
  
       system_type:
       {
           system_id:1,
  
            Tenant: [ 
                    { 
                  Tenant_Id: 1, 
                  Tenant_Info: "check", 
                  Prop_Info: ...
                    }, 
                    { 
                   Tenant_Id: 2, 
                   Tenant_Info: "sucess", 
                    Prop_Info: ...
                    } ]
                    }}
  </code></pre>
  
  <p>I need to update and set the field Tenant_Info to "failed" in Tenant_Id: 2</p>
  
  <p>I need to do it using mongodb java. I know to insert another tenant information in the tenant array. But here I need to set the field using java code.</p>
  
  <p>Could anyone help me to do this?</p>