title: Mapping a list of integers with Hibernate
body: <p>How can I map a list of integers in Hibernate?</p>
  
  <p>Something like this:</p>
  
  <pre><code>@Entity 
  class A{
      List&lt;Integer&gt; p;
      @OneToMany
      getP(...){..};
      setP(...){..};
  }
  </code></pre>