title: How to convert a map to a entity object in java?
body: <p>I have a entity object like this:</p>
  <pre><code>class Person{
   private String name;
   private String class;
   private String semester;
  }
  </code></pre>
  <p>Now I have a map like this: <code>Map&lt;String,String&gt;</code></p>
  <pre><code>{
     &quot;name&quot;:&quot;Giri&quot;
     &quot;class&quot;:&quot;12&quot;
     &quot;semester&quot;:&quot;C&quot;
  }
  </code></pre>
  <p>Now I want to convert this map to a Person object where each field in object corresponds to that field in map.</p>
  <p>How can I do this?</p>
  <p>Thanks</p>