title: How to create Tinyint Field in Hibernate annotation
body: <p>I have problem in creating tinyint field in MySQL database using Hibernate.</p>
  
  <p>I used to write the Entity class like this</p>
  
  <p>@Entity</p>
  
  <p>@Table(name="tablename")</p>
  
  <p>public class MyEntity {</p>
  
  <pre><code>private int id;
  
  @Id
  @GeneratedValue(strategy=GenerationType.AUTO)
  @Column(name="id")
  public int getId() {
      return id;
  }
  
  public void setId(int id) {
      this.id = id;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And when I check MySQL, id field always end up with Integer(11) , how do I make it as TinyInt ?</p>
  
  <p>Any answer would be appreciated</p>