title: Adding an enum as a class property in HBM
body: <p>I am trying to create a class in HBM file which contains an Enum as a field.</p>
  
  <p>The HBM is similar to this:</p>
  
  <pre><code>&lt;class name="a.b.c.myObject" table="OBJECT" &gt;
         &lt;property name="myEnum" column="EXAMPLE" type="a.b.c.myEnum" /&gt;
  &lt;/class&gt;
  </code></pre>
  
  <p>and let's say that this is the Enum:</p>
  
  <pre><code>public enum myEnum{
      a, b, c;
  }
  </code></pre>
  
  <p>The problem is that in the DB I expected to see the String value of that enum (a,b or c) but instead I got the raw data of that field.</p>
  
  <p>How can I solve that?  </p>