title: Map a tinyint as boolean hibernate
body: <p>I have a BOOLEAN type in a MySQL table (TINYINT(1)) and I'm trying to map the boolean field in an entity but this generates an exception:</p>
  
  <pre><code>org.hibernate.HibernateException: Wrong column type in maegul.users for column admin. Found: bit, expected: boolean
  </code></pre>
  
  <p>I changed the field in my entity to byte and make the respective changes so it acts a boolean, and I get:</p>
  
  <pre><code>org.hibernate.HibernateException: Wrong column type in maegul.users for column admin. Found: bit, expected: tinyint
  </code></pre>
  
  <p>I tried using the <code>@Type</code> annotation on the field:</p>
  
  <pre><code>@Type(type = "org.hibernate.type.NumericBooleanType")
  </code></pre>
  
  <p>but I get:</p>
  
  <pre><code>org.hibernate.HibernateException: Wrong column type in maegul.users for column admin. Found: bit, expected: integer
  </code></pre>