title: How to map a list of Strings with Hibernate XML file
body: <p>I'm trying to map a list of String using Hibernate XML mapping files. My class is the following:</p>
  
  <pre><code>public class Historic {
      private String id;
      private String resolution;
      private List&lt;String&gt; names;
      private List&lt;Score&gt; scores;
      private String base;
      private List&lt;Grade&gt; grades;
  }
  </code></pre>
  
  <p>I read in the documentation that I should be using the <code>&lt;element&gt;</code> tag, but I don't know how I'm going to reference the specific attributes from the <code>Historic</code> class.</p>
  
  <p>I think that it could be something like:
      </p>
  
  <pre><code>&lt;class name="Historic" table="HISTORIC"&gt;
      &lt;id name="id" column="id"&gt;
          &lt;generator class="native" /&gt;
      &lt;/id&gt;
  
      &lt;property name="resolution" type="string" column="resolution" /&gt;
  
      &lt;element
          name="names"
          column="names"
          type="string"
      /&gt;
  
      ...
  
  &lt;/class&gt;
  </code></pre>
  
  <p></p>
  
  <p>Is that right?</p>