Using hibernate hbm2ddl.auto = update: How to change the column so as not to require a value more?

I had a property that used to be non-null = "true". Values ​​are no longer needed for this field, so I changed it to not-null = "false", but the table is not updated in the database. Adding new properties does not cause problems.

Is it possible for hbm2ddl.auto = update to change the table automatically to remove non-null = "true"? (I know that I can just write a sql script to change it, but would like it to update automatically)

+5
source share
1 answer

, : hbm2ddl.auto = update not-null , .

sql script, .

+1

All Articles