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