I've been enjoying Hibernate's "yes_no" notation for a while now. I use it a lot on active fields like so:
@Column(name = "active")
@Type(type = "true_false")
public boolean getActive() {
return active;
}
public void setActive(boolean active) {
this.active = active;
}
Recently I added a new field called processable, to a different object, like so:
@Column(name = "processable")
@Type(type = "true_false")
public void setProcessable(boolean processable) {
this.processable = processable;
}
public boolean getProcessable() {
return processable;
}
When I compile and hibernate builds my database in MySQL, active still shows up as a char but processable is an int. Did I miss something? Do I have a limit on how many char booleans I'm allowed?