title: Saving special characters in Enum data type
body: <p>I would like to store and retrieve special characters (<code>/</code>, <code>*</code> etc) into/from DB table. This is my attempt:</p>
  
  <pre><code>public enum SpecialCharacters {
      Hack("H/K"), Gk("G*M");
  
      private String value;
  
      private SpecialCharacters(String value) {
          this.value = value;
      }
  
      public String toString() {
          return this.value; // This will return , # or +
      }
  }
  
  @Column(name = "Special_Char")
  @Enumerated(EnumType.STRING)
  private SpecialCharacters specialCharacters;
  ...
  </code></pre>
  
  <p>But in DB table it stores only enum field Names like <em>Hack</em> and <em>Gk</em>, not <strong>H/K</strong> and <strong>G*M</strong></p>