title: How to Dynamically create table from JSON data using Hibernate
body: <p>I am creating a application in which I am receiving the data in JSON format from Jersey RESTServices.I need to dynamically generate the table using the JSON  data and also want to store the values in this table. Let us suppose that I get the data as:</p>
  
  <pre><code>     { "fieldLists":
                       {"fields":[
  
                                  {"name":"field_a","type":"any Java Type"},
  
                                  {"name":"field_b","type":"any Java Type"}
                                 ]
                       }
        }
  </code></pre>
  
  <p>Now I need to create table using this data.I am stuck how to create class and its mapping at run time?</p>
  
  <p>Please suggest which approach will be better?</p>