private char sysparam = 'N';
public void setSysparam(boolean sysparam) {
this.sysparam = sysparam ? 'Y' : 'N';
}
public boolean getSysparam() {
return sysparam == 'Y';
}
Incidentally all my boolean fields are NOT NULL, so I use directly a boolean rather than a Boolean.
It's a shame that JPA doesn't cover something so basic. Everybody knows that Oracle doesn't support a BOOLEAN data type; so I expect everyone is having the same problem.
1 comment:
Thanks for the simple example. I'm encountering the same problem.
Post a Comment