title: Multi valued attribute in Hibernate
body: <p>I have the following entities:</p>
  
  <pre><code>____________________             ____________________
  |  Activity        |             |  Benefit         |
  ------------------ |             |------------------|
  | activityId:long  |-------------| benefitId: long  |
  | activity:varchar |             | activityId: long |
  | ....             |             | benefit: varchar |
  --------------------             -------------------|
  </code></pre>
  
  <p>Can I map this into Hibernate so I end up with this:</p>
  
  <pre><code>@Entity
  class Activity {
      @Id
      private Long id;
      private String activity;
  
  
      private List&lt;String&gt; benefits;
  }
  </code></pre>