title: insert List<Enum> into mysql database using java
body: <p>In my Code..</p>
  
  <pre><code>List&lt;WeekdayType&gt; weekday = new ArrayList&lt;WeekdayType&gt;();
  </code></pre>
  
  <p>i'm insert the <code>weekday</code>  into Database...
  Hear <code>WeekdayType</code> is Enum</p>
  
  <pre><code>public enum WeekdayType {
  MONDAY(Calendar.MONDAY), TUESDAY(Calendar.TUESDAY), WEDNESDAY(
          Calendar.WEDNESDAY), THURSDAY(Calendar.THURSDAY), FRIDAY(
          Calendar.FRIDAY), SATURDAY(Calendar.SATURDAY), SUNDAY(
          Calendar.SUNDAY);
  private int day;
  private WeekdayType(int day) {
      this.day = day;
  }
  public int getDay() {
      return day;
  }}
  </code></pre>
  
  <p>and i'm creating Bean in Hibernate like this..</p>
  
  <pre><code>    @Entity
  @Table(name="EC_TIMETABLE")
  public class TimetableVO
  {
  -------
  -----
  @Column(name="REPEAT_DAYS")
      private List&lt;WeekdayType&gt; repeatDays;
  //Setter and Getter...
  }
  </code></pre>
  
  <p>i'm inserting the values into Database but it giving Error:</p>
  
  <pre><code>org.hibernate.MappingException: Could not determine type for: java.util.List, at table: EC_TIMETABLE, for columns: [org.hibernate.mapping.Column(REPEAT_DAYS)]
  </code></pre>