title: Storing a Map<String,String> using JPA
body: <p>I am wondering if it is possible using annotations to persist the <code>attributes</code> map in the following class using JPA2</p>
  
  <pre><code>public class Example {
      long id;
      // ....
      Map&lt;String, String&gt; attributes = new HashMap&lt;String, String&gt;();
      // ....
  }
  </code></pre>
  
  <p>As we already have a pre existing production database, so ideally the values of <code>attributes</code>  could map to the following existing table:</p>
  
  <pre><code>create table example_attributes {
      example_id bigint,
      name varchar(100),
      value varchar(100));
  </code></pre>