title: Is it possible to Store Enum value in String?
body: <p>Actually my java program like...</p>
  
  <pre><code>public class Schedule {
      public static enum RepeatType {
          DAILY, WEEKLY, MONTHLY;
      }
  
      public static 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 static List&lt;Date&gt; generateSchedule(RepeatType repeatType,List&lt;WeekdayType&gt; repeatDays) {
              // ...
              // here some logic i wrote
          }
      }
  }
  </code></pre>
  
  <p>And i'm calling the method into my Business class like following...</p>
  
  <pre><code>@RemotingInclude
  public void createEvent(TimetableVO timetableVO) {
      if ("repeatDays".equals(timetableVO.getSearchKey())) {
          List&lt;Date&gt; repeatDaysList = Schedule.generateSchedule(timetableVO.getRepeatType() , timetableVO.getRepeatDays());
      }
  }
  </code></pre>
  
  <p>And Finally <code>TimetableVO</code> is </p>
  
  <pre><code>@Entity
  @Table(name="EC_TIMETABLE")
  public class TimetableVO extends AbstractVO {
      // ...
      private RepeatType repeatType;
  
      // But in this case the method generateSchedule(-,-) was not calling.
      private List&lt;WeekdayType&gt; repeatDays;
      // ... 
  }
  </code></pre>
  
  <p>So my Question is Which one is Better Statement in the Following...</p>
  
  <pre><code> private List&lt;WeekdayType&gt; repeatDays;
  </code></pre>
  
  <p>(or)</p>
  
  <pre><code> // If we give like this `How to Convert Enum type to String` because generateSchedule() method taking enum type value....
   private String repeatDays; 
  </code></pre>