title: How to use Postgresql enum type via Kotlin Exposed ORM?
body: <p>I have added some Postgresql types to Exposed as extensions. It has two ready types named <code>enumeration</code> and <code>enumerationByName</code>. I tested both of them with no success for mapping a postgre enum type to Kotlin enum class. In both reading and writing it raises error</p>
  
  <pre><code>enum class TicketStatus(val status: String) {
      Open("open"),
      Close("close"),
      InProgress("in_progress")
  }
  
  class Ticket(id: EntityID&lt;UUID&gt;) : Entity&lt;UUID&gt;(id) {
      companion object : EntityClass&lt;UUID, Ticket&gt;(Tickets)
  
      var geom by Tickets.geom
      var description by Tickets.description
      var status by Tickets.status
      var createdAt by Tickets.createdAt
      var updatedAt by Tickets.updatedAt
      var owner by Tickets.owner
  }
  </code></pre>
  
  <p>When reading:</p>
  
  <pre><code>java.lang.IllegalStateException: open is not valid for enum TicketStatus
  </code></pre>