session - After add additional Boolean Column, hibernate merge not working with created Object -
@field(analyze = analyze.no) private boolean usernamechange; @column public boolean getusernamechange() { return usernamechange; } public void setusernamechange(boolean usernamechange) { this.usernamechange =usernamechange ; }
hi, modified previous entity additional boolean column. can values user side server side. but, merge object using session.merge(), not update boolean value database. please 1 me solve issue. wasted more time solve issue still face issue.
did set default value boolean. null value not permitted, should add column in database :
alter table table_name add column column_name boolean default false/true;
then wont have merge issues. please name column.
Comments
Post a Comment