title: JSF MySQL Enum type
body: <p>I have a MySQL database with a table, in that table i have an Enum column that looks like this: </p>
  
  <pre><code>enum('mmol/l','pmol/l','g/l','mmol/mol','cm','kg','st','l','mg/l','mg/mmol',
       'micromol/l','ml/min','poäng','%','mm Hg','JDF enheter','ak-index')
  </code></pre>
  
  <p>I have a textfield there the user write in one of the values above and i can insert and take out data to this column with out problem if a user write the string right.</p>
  
  <p>But it's no guarantee that the user know what enum values you can write in this field, so is that anyway to take out what enum values you can write to the database, or do i need to hardcode it?</p>