title: JPA: Store a list of integers in a single field
body: <p>Is it possible to store a list of integers in a single field of the respective entity table with standard JPA 2?</p>
  
  <pre><code>@Entity
  @Table(name="tbl_myentities")
  public class MyEntity {
  
  @ElementaryCollection
  @Column(name="vals") // in table tbl_myentities
  private List&lt;Integer&gt; vals;
  </code></pre>