title: How map a bit type in Mysql to hibernate?
body: <p>i use the reverse engeneering in my class and get this:</p>
  
  <pre><code>@Entity
  @Table(name = "user", catalog = "bytecode", uniqueConstraints =
  @UniqueConstraint(columnNames = "email"))
  public class User implements java.io.Serializable {
  
      private Integer id;
      private String email;
      private String password;
      private boolean type;
  </code></pre>
  
  <p>Database:</p>
  
  <pre><code>CREATE TABLE  `bytecode`.`user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `email` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `type` bit(1) NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `email` (`email`)
  ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  </code></pre>
  
  <p>But i don't want to set 'true' or 'false' in my attribute 'type' but 1 or 0.
  How can i do that in hibernate ?</p>
  
  <p>Best regards,
  Valter Henrique.</p>