java - Can't mapping boolean value with added new column in hibernate annotation -


@column(columndefinition="boolean default false")  public boolean getusernamechange() {     return usernamechange; } public void setusernamechange(boolean usernamechange) {     this.usernamechange =usernamechange; } 

the above method implemented @entity annotation.

drop old column , update following @column annotation

 @column(name="user_change", columndefinition = "tinyint default false") 

Comments

Popular posts from this blog

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -